Download presentation
Presentation is loading. Please wait.
Published byBethany Simmons Modified over 6 years ago
1
Visual Studio 2010 and .NET Framework 4 Training Workshop
2
What’s New In ASP.NET Web Forms 4
Name Title Organization ESTIMATED TIME: 60 minutes
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 1) Master Page (No ID) Hierarchy
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 ID ViewState Mode
7
Product/{name} -> Product.aspx
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
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
QueryExtender Control 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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.