ASP.NET 4 will make a big difference in the simplicity of development and is more suitable for rapid development and various scenarios. At the same time, some new features of HTML 5 will further improve performance.
At the PDC 2009 conference, Jonathan Carter and Scott Hunter of Microsoft's ASP.NET team demonstrated some features designed for ASP.NET 4 and later versions. The main direction is to simplify application development, support Web standards, and improve performance.
In terms of simplifying application development, the ASP.NET team is considering the following features:
Action Record mode support for ASP.NET MVC and WebForms, based on Entity Framework, facilitates rapid modeling and rapid development.
Easier-to-use Route rules: can automatically determine routing targets and related parameters based on various information (such as file paths on the hard disk).
Extensible, helper methods based on common tasks/scenarios, such as:
Image processing, such as scaling, watermarking and other common operations.
OpenID support so developers can easily integrate ASP.NET authentication with OpenID.
Background scheduled tasks, such as executing a task "every 10 minutes" or "every day at 2 am".
Email sending, and registration process using email for verification.
Real file upload progress prompts. Currently, implementing this function requires the use of certain dangerous techniques, and ASP.NET may release more interfaces to support it in the future.
HTML 5 brings many new features, such as new HTML tags, native video and audio support, drag-and-drop operations, and more. In the future, ASP.NET will first support more semantic tags in HTML 5. For example, in ASP.NET 2.0, the <asp:Menu /> control will generate complex table tags. In ASP.NET 4, it will become ul/il nesting that conforms to the current semantics. In future ASP.NET , the <menu /> tag may be generated. In addition, the Web Storage function of HTML 5 allows data to be stored on the browser. The future Microsoft AJAX library will provide an optional IntermediateDataContext to replace the current AdoNetDataContext, which stores data on the server side through the WCF interface. The former saves the data locally.
In terms of performance improvement, the ASP.NET team will provide various providers for ASP.NET after the release of Microsoft's distributed cache Velocity. In this way, ASP.NET can store various information such as data cache and session state in an out-of-process distributed cache to obtain better performance and robustness. These provider implementations can be well integrated with ASP.NET's existing extension methods and remain transparent to developers.
As web applications become more and more colorful, the importance of web front-end performance optimization also increases. In the future, ASP.NET will have built-in compression and merging of CSS or JavaScript files, and will provide support for complex optimization methods such as CSS Sprites. The optimization principle of CSS Sprite is to merge a large number of small pictures on the page into one file, and then use the CSS positioning mechanism to display part of it. The advantage of this is that it greatly reduces the number of communications between the browser and the server, which can often make the page load. The speed is significantly improved. In the future, ASP.NET can automatically merge a group of pictures according to the needs of developers, and expose the information (such as position, size) of a single picture through some interfaces, and even directly generate an image containing specific attributes on the page. HTML tag.