230 likes | 324 Views
What’s new in .NET Framework 3.5 SP1 for Web Developers. Sarang S. Datye Consultant – Microsoft Global Services India. Harish Ranganathan Live – Web Developer Evangelist. Agenda. ASP.NET Dynamic Data Scaffolding Model Metadata Model Validation Customization Page Templates
E N D
What’s new in .NET Framework 3.5 SP1 for Web Developers Sarang S. Datye Consultant – Microsoft Global Services India. • Harish Ranganathan • Live – Web Developer Evangelist
Agenda • ASP.NET Dynamic Data • Scaffolding • Model Metadata • Model Validation • Customization • Page Templates • Field Templates • Custom Pages • ASP.NET Routing • What is ASP.NET Routing? • Routing taxonomy • Route • Route Table/ Route Collection • Pipeline • ASP.NET AJAX • AJAX History • Server-Side • Client-Side • Script Combining • ScriptReferenceProfiler
Scaffolding • Data-driven web application • Full CRUD • Templated • AJAX • Extensible
Demo Scaffolding
Model Metadata • Data Type • Display Column • Display Format • Display Name • Scaffold • UI Hint
Demo Model Metadata
Validation • Validation • Range • Regular Expression • Required • String Length • Model Validation
Demo Model Validation
Customization • Page Templates • Custom Pages • Field Templates • FieldTemplateUserControl • Read-only/Edit/Insert Views
Demo Customization
What is ASP.NET Routing? • Route-to-resource mapping 2. URL Generation Route Resource Resource Route
Route • Resource map • URL (w/Parameters) • Constraints • Defaults • Route handler Route URL: /Customers/{id}/{action} Defaults: action = “View” Constraints: id = “\d{2}” Route Handler: MvcRouteHandler
Route Table/Route Collection • Shared route container • Application-wide cache Route Table Route Collection Route Matching URL Generation Route Route Route
Pipeline Stores all route definitions Route Table Request Responsible For Determining Match URL Routing Module Route Response Responsible For Creating / Selecting HTTP Handler HTTP Handler Route Handler
Demo ASP.NET Routing
History Back Button History Point #1 History Point #2
AJAX History • Take advantage of browser… • Back/Forward Buttons • Bookmarks • Server-Side • UpdatePanel • ScriptManager • Client-Side • Sys.Application • ScriptManager
Demo History and ScriptCombining
Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form at: << Feedback URL – Ask your organizer for this in advance>> For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx Or email us at vtd@microsoft.com • Use the Question Manager on LiveMeeting to ask your questions now!
Contact (optional slide) • Blog Address www.dotnetbetaworks.com • Email Address sarang.datye@microsoft.com