connect with life sundararajan subramanian sde | microsoft r&d india pvt ltd.,
TRANSCRIPT
![Page 1: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/1.jpg)
Connect with life
www.connectwithlife.co.in
Sundararajan SubramanianSDE | Microsoft R&D India Pvt Ltd.,http://blogs.msdn.com/sundararajan
![Page 2: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/2.jpg)
Session Summary
Introducing Dynamic DataCustomization OptionsDemosFeedback and Q&A
![Page 3: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/3.jpg)
The traditional approach
Create your modelCreate ASP.NET pagesAdd data controls and data source controlsAdd validation logic in the pageIssues:
Fair bit of work to get startedLogic lives in the wrong placeIgnores valuable schema informationReuse and customization is difficult
![Page 4: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/4.jpg)
The Dynamic Data approach
Create your modelInstantly get a fully functional app!
Customize the app piece by piece:ModelFieldsPagesRoutes
![Page 5: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/5.jpg)
Dynamic Data At a Glance
![Page 6: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/6.jpg)
Meta Model
Register contexts/providersGet Tables/PathDynamic Data Folder Virtual PathField Template Factory
Meta Model
Meta Table
Meta Column
Meta Column
Meta Table
Meta Column
Meta Column
URL Generation
![Page 7: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/7.jpg)
Routing Pipeline
URL RoutingModule
Dynamic Route
Route Table
ASPX PageDynamic
RouteHandler
Request
Response
Ensures:1) Table2) Action
Checks for:1) Custom Page2) Scaffold Page
![Page 8: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/8.jpg)
UI Customization
Dynamic Data provides UI customization at many levels (from least to most control)
![Page 9: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/9.jpg)
Annotating the model
Metadata on model drives the behaviorDefault metadata inferred from schema
Data types and relationshipsRequired fields, string length, …
Add additional metadataValidationField labels and descriptionsPartial methods
![Page 10: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/10.jpg)
Annotating the model
![Page 11: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/11.jpg)
Field templates
Fields are rendered using templatesSelected based on field data typeHandle rendering, data binding and validation
Template selection can be overriddenCan be overriden with DataType and UIHint attributes or properties
Simple ascx files that can easily be reused across projects
![Page 12: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/12.jpg)
Field templates
![Page 13: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/13.jpg)
Customizing pages
Page templatesAffect shared behavior across tables
Custom pages for individual tablesChoose the column setCustomize the rendering
![Page 14: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/14.jpg)
Dynamic Data Controls
DynamicDataManagerGridView, DetailsView
DynamicDataField
ListView, FormViewDynamicControl
LinqDataSource, EntitiesDataSourceDynamicControlParameterDynamicQueryStringParameter
DynamicValidatorDynamicFilter (UserControl), FilterRepeater
![Page 15: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/15.jpg)
Customizing pages
![Page 16: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/16.jpg)
Dynamic Data Wizard
![Page 17: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/17.jpg)
Final thoughts
Try the .Net 3.5 SP1 todayUpdate the DynamicData with the preview available in CodePlexForum: http://forums.asp.net/1145.aspxBlogs:
http://blogs.msdn.com/davidebb/http://blogs.msdn.com/scothu/http://blogs.msdn.com/marcinon/
![Page 18: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/18.jpg)
Feedback / QnA
Your Feedback is Important!
For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx
Or email us at [email protected]
Use the Question Manager on LiveMeeting to ask your questions now!
![Page 19: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/19.jpg)
Contact
Blog Addresshttp://blogs.msdn.com/sundararajan
![Page 20: Connect with life Sundararajan Subramanian SDE | Microsoft R&D India Pvt Ltd.,](https://reader030.vdocuments.us/reader030/viewer/2022032414/56649efb5503460f94c0d1cb/html5/thumbnails/20.jpg)
© 2008 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.