ASP.NET 4.5 새 기능
모델 바인딩이 특히 맘에든다. asp.net 4에서는 MVC3에만 있어서 아쉬웠는데.
그리고 나도 한때에는 웹폼을 혐오했는데, 웹폼의 생산성만큼은 이제 인정해야 할 듯.
그리고 나도 한때에는 웹폼을 혐오했는데, 웹폼의 생산성만큼은 이제 인정해야 할 듯.
The following table lists some of the enhancements that have been made for Web Forms in ASP.NET 4.5.
Feature
|
Description
|
Resources
|
---|---|---|
Model binders
|
Web Forms now supports model binding, which lets you bind data controls directly to data-access methods. ASP.NET automatically converts data from form fields, query strings, cookies, session state, and view state into method parameters. You can use these parameters to select data from or make updates to the database. (This technique is similar to model binding in ASP.NET MVC.)
|
Model Binding and Web Forms (tutorial series)
Model Binding (What's New whitepaper)
Model Binding Part 2 - Filtering (video)
|
Strongly typed binding expressions in data controls
|
You can now write strongly typed, two-way data-binding expressions in Web Forms data controls, instead of using Bind or Eval expressions. This approach lets you access complex properties in data controls. These expressions can be used with the new model binding feature.
|
Strongly typed data controls (What's New whitepaper)
Strongly Typed Data Controls (blog entry)
Strongly typed data controls (video)
|
Unobtrusive JavaScript for client-side validation
|
Unobtrusive validation moves the code for client-side validation into a single external JavaScript file, which makes pages smaller and faster to load. It also provides better caching of script files.
|
Unobtrusive Validation(What's New whitepaper)
|
HTML encoded data-binding expressions
|
New syntax lets you encode HTML output in page markup.
|
HTML Encoded Data-Binding Expressions(What's New whitepaper)
|
Fallback support for content distribution networks (CDNs) in the ScriptManagercontrol
|
When you set the EnableCdn property of the ScriptManager control, the control tests whether the script was loaded successfully from the CDN. If not, the control falls back to loading the script from an alternate (local) location.
|
ASP.NET 4.0 ScriptManager Improvements (blog entry)
Announcing the Microsoft AJAX CDN(blog entry)
|
Support for HTML5 form types
|
You can use HTML5 elements like email, tel, url, and search in Web Forms pages.
|
HTML5 Updates (What's New whitepaper)
HTML 5 Input Types on WebForms Controls(blog entry)
|
Improved paging in the GridView control
|
The new AllowCustomPaging and VirtualItemCount properties of the GridView control let you customize paging functionality. These new properties remove the need for the control to retrieve all rows from the data source each time a new page is displayed.
|
AllowCustomPaging(MSDN Library)
VirtualItemCount (MSDN Library)
|
Enhancements to Web Forms compilation
|
The following improvements extend the Web Forms compilation system:
- A new ControlBuilderInterceptor class lets you customize Web Forms page and control compilation output.
- A new TemplateParser.ParseTemplate method lets you generate an ITemplate instance from a string of ASPX markup.
|
ControlBuilderInterceptor(MSDN Library)
ParseTemplate (MSDN Library)
ITemplate (MSDN Library)
Visual Studio 2012 RC is released - The Big Web Rollup (Scott Hanselman blog)
|
For more information, see What’s New in ASP.NET 4.5 and Visual Studio 2012 on the ASP.NET website and ASP.NET Data Access Content Map.
댓글
댓글 쓰기