At the PDC 09 Conference held last month, Jonathan Carter and Scott Hunter of the Microsoft ASP.net team demonstrated some of the features designed for the release of ASP.net 4, with the main direction of simplifying application development, supporting web standards, and improving performance.
In terms of simplifying application development, ASP. NET team is considering the following features:
1. Can be used for asp.net mvc and WebForms action record mode support, based on the entity Framework, facilitate rapid modeling, rapid development.
2. Easier to use route rules: can be combined with a variety of information (such as the file path on the hard disk) to automatically determine the routing target and related parameters.
3. Scalable, based on common task/scenario assistance methods, such as:
• Image processing, such as scaling, watermark and other common operations.
· OpenID support, so developers can easily integrate ASP.net authentication with OpenID.
• Background Scheduled tasks, such as "every 10 minutes" or "2 o'clock in the morning every day" to perform a task.
· Email and the registration process for verification using email.
Real file upload progress hints that there are some dangerous techniques that need to be used to implement this feature, and that future asp.net may release more interfaces for support.
HTML 5 brings many new features, such as new HTML tags, native video and audio support, drag-and-drop operations, and so on. The future ASP.net will first support more semantic markup in HTML 5. In ASP.net 2.0, the control generates a complex table tag, which in ASP.net 4 becomes a ul/il nesting that conforms to the current semantics, and in the future ASP.net, markup may be generated.
In addition, the Web Storage feature of HTML 5 allows data to be stored in a browser, and an optional intermediatedatacontext is available in future Microsoft Ajax libraries to replace the current adonetdatacontext. The latter stores data through the WCF interface on the server side, while the former stores the data locally.
In terms of performance improvements, ASP. NET team will provide all kinds of provider for ASP.net after the release of the Microsoft distributed cache velocity. This allows for better performance and robustness by storing information such as data caching, session state, and so on, in a distributed, out-of-process asp.net cache. These provider implementations can be well integrated with asp.net existing extensions and remain transparent to the developer's use.
As Web applications are becoming more and more visible, the importance of optimizing the front-end performance of Web pages increases. Future asp.net will have built-in CSS or JavaScript file compression and merging, and the CSS sprites and other complex optimization methods to provide support. CSS Sprite Optimization principle is the page on a large number of small pictures merged into a file, and then use the CSS positioning mechanism to display a part of it, the advantage of this is greatly reduce the browser and server-side communication times, often can make the page loading speed has been significantly improved. Asp. NET in the future, a group of pictures can be automatically merged according to the needs of the developer, and the information (such as location, size) of a single picture will be exposed through some interfaces, even the HTML tags containing specific attributes are generated directly on the page.