1 / 15

Visual Studio 2010 and .NET Framework 4 Training Workshop

Visual Studio 2010 and .NET Framework 4 Training Workshop. What’s New In ASP.NET Web Forms 4. Name Title Organization Email. Objectives. How is client-side development made easier? How can I achieve more control over my application? How are the existing server controls enhanced?.

monty
Download Presentation

Visual Studio 2010 and .NET Framework 4 Training Workshop

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Visual Studio 2010and.NET Framework 4Training Workshop

  2. What’s New InASP.NET Web Forms 4 Name Title Organization Email

  3. Objectives How is client-side development made easier? How can I achieve more control over my application? How are the existing server controls enhanced?

  4. Client ID Control Hierarchy 1) Master Page (No ID) 2) User Control (“HeaderForm”) 3) Drop Down List (“States”) • Resulting Client IDs: • ctl00 • ctl00_HeaderForm • ctl00_HeaderForm_States

  5. ViewState Mode If you do this… Then neither this… Nor this… Will work

  6. Client IDViewState Mode

  7. Routing ASP.NET Routing Route: Product/{name} -> Product.aspx Request: Products/Bikes WebForms Page File Name: Product.aspx Route Values: Name = “Bikes” Response

  8. Routing

  9. QueryExtender LINQ To SQL Data Source Entity Data Source Uses arbitrary language Difficult to extend Uses Entity SQL Difficult to extend Query Extender Uses Parameters Very easy to perform advanced queries

  10. What investments have been made to the existing controls?

  11. Misc Control Enhancements • FormView • Can remove superflous <table> • GridView • Allows styling of header columns when sorted • Works without ViewState • Supports persisted selection • 3) ListView • No longer requires a LayoutTemplate • Supports persisted selection

  12. Misc Control Enhancements (cont.) • CompareValidator • Supports Time and DateTime • 2) LinqDataSource • Allows you to write queries using LINQ • 3) DataPager • Works with GridView, DetailsView, and FormView

  13. QueryExtenderControl Enhancements

  14. Summary The new client ID and ViewState mode features give you better control over your application Routing integration allows you to easily customize your sitemap New server control enhancements make leveraging the existing control suite easier

More Related