What’s New In ASP.NET Web Forms 4 Name Ravi Pahuja Organization Espire Info Labs Email ravi.pahuja@gmail.com
Objectives <ul><li>How is client-side development made easier? </li></ul><ul><li>How can I achieve more control over my ap...
Client ID 1) Master Page (No ID) 2) User Control (“HeaderForm”) Control Hierarchy 3) Drop Down List (“States”) <ul><li>Res...
Client ID <ul><li>1. Legacy </li></ul><ul><li>2. Inherit </li></ul><ul><li>3. Static </li></ul><ul><li>4. Predictable – Cl...
ViewState Mode If you do this… Then neither this… Nor this… Will work
Client ID ViewState Mode
Routing Request: Products/Bikes ASP.NET Routing Route: Product/{name} -> Product.aspx WebForms Page File Name: Product.asp...
Few More Enhancements <ul><li>GridView   </li></ul><ul><ul><li>Allows styling of header columns when sorted </li></ul></ul...
Few More Enhancements (cont.) <ul><li>CompareValidator </li></ul><ul><ul><li>Supports Time and DateTime </li></ul></ul><ul...
Summary <ul><li>The new client ID and ViewState mode features give you better control over your application </li></ul><ul>...
Upcoming SlideShare
Loading in...5
×

Whats New In Asp.Net Web Forms 4

3,076

Published on

Whats New In Asp.Net Web Forms 4

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,076
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
52
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • ESTIMATED TIME: 60 minutes
  • Whats New In Asp.Net Web Forms 4

    1. 1. What’s New In ASP.NET Web Forms 4 Name Ravi Pahuja Organization Espire Info Labs Email ravi.pahuja@gmail.com
    2. 2. Objectives <ul><li>How is client-side development made easier? </li></ul><ul><li>How can I achieve more control over my application? </li></ul><ul><li>How are the existing server controls enhanced? </li></ul>
    3. 3. Client ID 1) Master Page (No ID) 2) User Control (“HeaderForm”) Control Hierarchy 3) Drop Down List (“States”) <ul><li>Resulting Client IDs: </li></ul><ul><li>ctl00 </li></ul><ul><li>ctl00_HeaderForm </li></ul><ul><li>ctl00_HeaderForm_States </li></ul>
    4. 4. Client ID <ul><li>1. Legacy </li></ul><ul><li>2. Inherit </li></ul><ul><li>3. Static </li></ul><ul><li>4. Predictable – ClientIDRowSuffix </li></ul><ul><li>- At Page level: Defines the default ClientIdMode for all controls within the current page. </li></ul><ul><li>- At Web Config level: It is also possible to set the ClientIdMode in the config section at either machine or application level. </li></ul>
    5. 5. ViewState Mode If you do this… Then neither this… Nor this… Will work
    6. 6. Client ID ViewState Mode
    7. 7. Routing Request: Products/Bikes ASP.NET Routing Route: Product/{name} -> Product.aspx WebForms Page File Name: Product.aspx Route Values: Name = “Bikes” Response
    8. 8. Few More Enhancements <ul><li>GridView </li></ul><ul><ul><li>Allows styling of header columns when sorted </li></ul></ul><ul><ul><li>Works without ViewState </li></ul></ul><ul><ul><li>Supports persisted selection </li></ul></ul><ul><li>3) ListView </li></ul><ul><ul><li>No longer requires a LayoutTemplate </li></ul></ul><ul><ul><li>Supports persisted selection </li></ul></ul>
    9. 9. Few More Enhancements (cont.) <ul><li>CompareValidator </li></ul><ul><ul><li>Supports Time and DateTime </li></ul></ul><ul><li>2) LinqDataSource </li></ul><ul><ul><li>Allows you to write queries using LINQ </li></ul></ul><ul><li>3) DataPager </li></ul><ul><ul><li>Works with GridView, DetailsView, and FormView </li></ul></ul>
    10. 10. Summary <ul><li>The new client ID and ViewState mode features give you better control over your application </li></ul><ul><li>Routing integration allows you to easily customize your sitemap </li></ul><ul><li>New server control enhancements make leveraging the existing control suite easier </li></ul>
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×