Jeff King Senior Program Manager Microsoft Session Code: WIA404 Session Objectives Understand ASP.NET 4.0 data advancements RAD data continues to be advanced Model driven development across.

Download Report

Transcript Jeff King Senior Program Manager Microsoft Session Code: WIA404 Session Objectives Understand ASP.NET 4.0 data advancements RAD data continues to be advanced Model driven development across.

Jeff King
Senior Program Manager
Microsoft
Session Code: WIA404
Session Objectives
Understand ASP.NET 4.0 data advancements
RAD data continues to be advanced
Model driven development across multiple
presentation layers
Business logic layer is the future
Data Driven Web Apps Today…
Data Controls
Data Sources
GridView
DetailsView
Object
LINQ
FormView
ListView
Entity
SQL
DataPager
Repeater
Access
XML
Control Arsenal
These controls are great,
but we need more…
Rich data models
We need these semantics
reflected in our application…
We need two things…
Metadata
Validation
#1
Data
Model
Model-Aware Data
Controls
#2
Model Aware UI
What if you wanted
more control
over the generated UI?
Field Templates
Bound to
Model-Aware Data
Control
Uses
Field Templates
(Integer, String, Date,
etc)
* Easy extensibility
point
Leverage the same
annotations and controls,
but control the UI
Templating
What if you wanted
even more control?
Data controls now…
Data Controls
GridView
Data Sources
DetailsView
Object
Supplemental Controls
FormView
Dynamic
ListView
Control
DataPager
Dynamic
Repeater
Validator
Dynamic
Control
Parameter
Dynamic
Entity
Field
Dynamic
Access
Data
Manager
Dynamic
Query String
Parameter
LINQ
SQL
XML
Built on top of the
existing controls
These are what
the field templates
are using…
Dynamic Controls
Could our smart UI and
model deduce an entire page?
Page Templates
Metadata
Validation
Data
Model
Page Template
Model-Aware
Data Controls
Dynamic
Controls
Field Templates
How about
an entire application?
Routing
Route Table
Request
URL Routing
Module
Dynamic
Route
Response
ASPX Page
(Http Handler)
Dynamic Route
Handler
Ensures:
1) Table
2) Action
Checks for:
1) Custom Page
2) Scaffold Page
Scaffolding
QueryBlock Extender
Filtering is hard today
Makes common filtering EASY
Range
Search
Control
User Defined
Supports Entity Framework
Supports Linq to SQL
QueryBlock Extender
Business Layer
Data Control
Data Control
Data Source
Data Source
Business Layer
Data Model
Data Model
Dynamic Data in ASP.NET 4.0
Entity Templates
Easily change look and feel
for tables
Automatic templates for
ListView and FormView
Like field templates but for
entire object
Filters
Templates
Based on the new
QueryBlock
Many to Many (Entity
Framework)
Inheritance (Entity
Framework and Linq to
SQL)
Field Templates
Url, Email, Enumeration
Resources
http://www.asp.net/dynamicdata
http://www.codeplex.com/aspnet
http://blogs.msdn.com/davidebb/
http://blogs.msdn.com/marcinon/
http://blogs.msdn.com/scothu/
http://weblogs.asp.net/scottgu
http://www.hanselman.com/blog
Resources
www.microsoft.com/teched
www.microsoft.com/learning
Sessions On-Demand & Community
Microsoft Certification & Training Resources
http://microsoft.com/technet
http://microsoft.com/msdn
Resources for IT Professionals
Resources for Developers
Complete an evaluation
on CommNet and enter to
win an Xbox 360 Elite!
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should
not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.