1 / 7

What are Razor Pages?

In 2016, Microsoft released ASP Dot Net Core as an open source, cross platform, and modular framework for development of web application, web services, mobile back-ends, and IoT applications. The framework further allows developers deploy these cross-platforms applications either on-premise or in the cloud. Recently, Microsoft announced ASP Dot Net Core 2.0 with several new features and enhancements. ASP Dot Net Core 2.0 comes with a new feature called Razor Pages.

Download Presentation

What are Razor Pages?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What are Razor Pages?

  2.  In 2016, Microsoft released ASP Dot Net Core as an open source, cross platform, and modular framework for development of web application, web services, mobile back- ends, and IoT applications.  The framework further allows developers deploy these cross- platforms applications either on-premise or in the cloud. Recently, Microsoft announced ASP Dot Net Core 2.0 with several new features and enhancements.  ASP Dot Net Core 2.0 comes with a new feature called Razor Pages.

  3.  Microsoft describes Razor Pages as “a new coding paradigm that makes writing page-focused scenarios easier and simpler than our current Model-View- Controller architecture.”  The developers can use Razor Pages as a page first structure to accelerate user interface (UI) development.  Likewise, they can also use the new coding paradigm to improve server side experience through PageModel objects. But the developers can use Razor Pages only with .NET Core 2.0.0 or Visual Studio 15.3.

  4. Understanding Important Aspects of Razor Pages P Pa age ge Based Based Model Model Razor Pages is designed as a page-based coding model. The entire code of a web page is stored in a single file. The file defines the URL structure of the entire app. Hence, the developers can use Razor Pages as an updated version of ASP Dot Net Web Forms. However, Razor Pages lacks some of the robust features provided by ASP Dot NetMVC.

  5. A Lightweight Alternative to MVC Microsoft promotes Razor Pages as a simpler alternative to ASP Dot Net MVC. Razor Pages still lacks many features provided by ASP Dot Net MVC. The developers can use Razor Pages as a model-view-viewmodel (MVVM) solution. The coding paradigm contains both models and controllers in a single file. Hence, developers can use Razor Pages as an alternative to MVC while creating simple web pages.

  6. Shares Many Features with ASP Dot NET MVC Razor Pages enable programmers to avail a number of features that can be used with MVC. For instance, the developers can avail MVC features like model binding, tag helpers, HTML helpers, handlers (action methods, and Razor support while working with Razor Pages. Likewise, they can create Razor Pages application using ASP Dot Net MVC syntax and functionality.

  7. Content Designed By: Mindfire Solutions

More Related