Overview of new ASP. net4.0 features
1,Control viewstate-- Now the default value of enableviewstate is true. Many developers rarely set it to false even if we don't need it, I will also review this point). A large part of Asp.net resources are wasted on this. In 4.0, the default enableviewstate is false, which also increases developers' requirements in disguise, because developers must know which viewstates need to be set to true.
The original English text is like this:
Control over view State -- currently, view State is enabled for all controls bydefault. most developers are pretty lazy about disabling view State when Theydon't need it. in ASP. net web forms 4.0, You can invert the normal state ofthings and disable view State
By default.
2,Control client IDS-- This feature greatly reduces the client workload. You can generate HTML tags on the server using JavaScript and CSS. For many developers engaged in Asp.net, JS operations on server controls are quite uncomfortable (compared with JSP and PHP, or Asp.net is criticized as a short board ), it is estimated that Ms was finally compromised by the voices of the masses. With 4.0, getting the Server Control ID is as easy as other dynamic page technologies (forget the annoying binding and clientid to get the DOM element ID ).
Original English:
Control over client IDs -- this is a welcome feature for those of us who do alot of client-side programming.
This change will make it much easier to target HTML tags rendered byserver-side controls with JavaScript
And Cascading Style Sheets.
3,Better support for Web Development Standards-- This estimation MS is also in line with the trend. IE7 and 8 are all designed to move closer to the Web standard. However, Ms still has many of its own standards, so it is difficult to say "better support" instead of "completely compatible.
Original English:
Better support for web standards -- several improvements have been made to theasp. net web forms 4.0 framework that enable you to more easily build websitesthat are compliant with web standards such as XHTML and accessibilitystandards. for example, you can prevent
A formview control from rendering anhtml table automatically.
4,Queryextender Control-- Every time new things are made in MS, it seems that there is always a new innovation that makes programmers more stupid. The new queryextender control makes it easier for you to filter data and retrieve entitydatasource or linqdatasource. It is no longer easy for developers who drag controls.
Original English:
Queryextender control -- The New queryextender control enables you to easily filterdata retrieved
The entitydatasource or linqdatasource controls. You can use it to easilycreate search pages.
5,Seo)-- A more friendly URLs makes it easier for search engines to index your web pages.
Original English:
Search engine optimization (SEO) -- there are several new features added to theasp. NET Framework
That make it easier to get your website pages indexed by search engines. Forexample, the new ASP. NET web forms routing framework enables you to expose yourasp. Net pages with more intuitive URLs.
6,Dynamic Data Improvement-- Entity templates enable you to create templates for display, modification, and object creation.
Original English:
Improvements to dynamic data -- several great new features are being added todynamic data. my favorite new feature is entity templates which enable you tocreate templates for display, editing, and inserting new instances of an entity (such as a product entity ).
In addition, some functions are also added to the vs2010 development tool.
1.Added a project template.The new template has the following improvements:
Basic membership functions. Authentication is required for most websites and applications. Therefore, the authentication function is added to the new template so that users can quickly get started with identity authentication in the web project squadron, the files of the authentication module are stored in the account folder;
2.Added the default master page. You can use the master page to easily display Website webpages. For example, if the top page, user logon Status display, and menu are involved, the default master page file name is site. master;
3.Added the default CSS style file.. CSS sample files allow us to easily adjust the website style. A style file named site.css will be added when a website is created, which is located in the styles folder;
4.Mini web. config file. In vs2010, the Web. config file is very small, and most of the configurations are stored in the machine. config file;
5.Integrate jquery. Jquery is a very powerful JavaScript class library, which allows web developers to conveniently operate XHTML documents. It is supported only when SP1 is installed in vs2008, and directly supported in vs2010, the jquery class library file is in the scripts folder. Through the above practice, the composition structure of our website is similar, which makes it easier to maintain (unlike earlier versions, the folders for storing such files are different ).
6.Better SMART awareness of JavaScript and HTML code
In earlier versions of Vs, the support for JavaScript intelligent sensing is relatively poor, and there is no support for HTML code segments. However, this function is now provided in vs2010, both JS and HTML code can be well-coded.