Improvements to ASP. NET Web Forms

Source: Internet
Author: User

Although ASP. NET Web forms is not part of the Vnext plan, it is not overlooked. As part of Visual Studio Update 2, it restarted support for new tools, EF integrations, and Roslyn.

Why Web Forms is not part of an ASP. Vnext

Let's start by explaining the bad news first. To improve performance and cross-platform portability, ASP. NET Vnext is eliminating the dependency on system.web. Compared with Owin, it is slow and huge, which makes the test work more unnecessary trouble.

Although they have tried to separate it several times, Web Forms is too close to the rest of the system.web. That's just the beginning of the problem. System.Web and system.design have cyclic dependence, this situation should not have the possibility of occurrence. More complicated, System.Design also System.Windows.Forms involved.

In a word, the code for WEB forms is like a piece of spaghetti that can't be solved. But it will continue to be used, so Microsoft is still supporting it.

Support Roslyn

As part of its deployment strategy, Web forms always contains run-time compilation. This does not change, but as an alternative implementation, developers can switch to the Roslyn-based CodeDom provider. (CodeDom is the compiler framework currently used by Web Forms) Pranav Rastogi wrote:

We tested an application with moderate size and complexity (more than 600 assemblies in the \ Bin directory, more than 500 user controls & pages), and after enabling the new CodeDom provider that will be described in detail below, start/ The run-time compilation cost of the precompilation phase was reduced from about 15 minutes to about 70 seconds.

Support for ASP. NET Identity 2.0

The ASP. NET identity is a new membership management system that is modern for building ASP. Identity makes it easier to add user profiles, such as Facebook, Twitter, Microsoft accounts, social logins such as Google, and so on, to switch the persistence layer from SQL Server to Azure Table storage. It also adds features such as account confirmations, two-factor authentication, account lockout, Single sign-on from any location, password resets, and many other security-related functions.

In this update, the Web forms template has been modified to include features from ASP. NET Identity 2.0.

Support for Entity Framework 6

To support EF6, the following components have been updated:

    • EntityDataSource controls
    • DynamicData provider
    • Generic provider
Web Forms Scaffolding

Scaffolding is a code generator used in basic CRUD operations in the ASP. NET MVC model, and is rewritten in Visual Studio 2013. As a result of the rewrite, Microsoft can now provide scaffolding support for Web Forms. In particular, developers can create, replace, update, and delete views from a model object.

Readers can read the full Web Forms announcement from the. NET Web development and Tools blog.

English Original: Improvements for ASP Web Forms

Improvements to ASP. NET Web forms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.