190 likes | 405 Views
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.
E N D
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.
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.
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.
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.
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.