visual studio 2010 and .net framework 4 training workshop
DESCRIPTION
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?. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/1.jpg)
Visual Studio 2010and
.NET Framework 4
Training Workshop
Visual Studio 2010and
.NET Framework 4
Training Workshop
![Page 2: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/2.jpg)
What’s New InASP.NET Web Forms 4
What’s New InASP.NET Web Forms 4
NameTitleOrganizationEmail
![Page 3: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/3.jpg)
ObjectivesObjectives
• How is client-side development made easier?
• How can I achieve more control over my application?
• How are the existing server controls enhanced?
![Page 4: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/4.jpg)
Client IDClient ID
1) Master Page (No ID)
2) User Control (“HeaderForm”)
ControlHierarchy
3) Drop Down List (“States”)
Resulting Client IDs:1) ctl002) ctl00_HeaderForm3) ctl00_HeaderForm_States
![Page 5: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/5.jpg)
ViewState ModeViewState ModeIf you do this…
Then neither this…
Nor this…
Will work
![Page 6: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/6.jpg)
Client IDViewState ModeClient IDViewState Mode
![Page 7: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/7.jpg)
RoutingRouting
Request:Products/Bikes
ASP.NET Routing
Route:Product/{name} -> Product.aspx
WebForms Page
File Name:Product.aspx
Route Values:Name = “Bikes”
Response
![Page 8: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/8.jpg)
RoutingRouting
![Page 9: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/9.jpg)
QueryExtenderQueryExtender
LINQ To SQLData Source
EntityData Source
1) Uses arbitrary language2) Difficult to extend
1) Uses Entity SQL2) Difficult to extend
QueryExtender
1) Uses Parameters2) Very easy to perform advanced queries
![Page 10: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/10.jpg)
What investments have been made to the existing controls?
![Page 11: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/11.jpg)
Misc Control EnhancementsMisc Control Enhancements
1) FormViewa) Can remove superflous <table>
2) GridView a) Allows styling of header columns when sortedb) Works without ViewStatec) Supports persisted selection
3) ListViewd) No longer requires a LayoutTemplatee) Supports persisted selection
![Page 12: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/12.jpg)
Misc Control Enhancements (cont.)Misc Control Enhancements (cont.)
1) CompareValidatora) Supports Time and DateTime
2) LinqDataSourceb) Allows you to write queries using LINQ
3) DataPagerc) Works with GridView, DetailsView, and FormView
![Page 13: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/13.jpg)
QueryExtenderControl EnhancementsQueryExtenderControl Enhancements
![Page 14: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/14.jpg)
SummarySummary
• 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
![Page 15: Visual Studio 2010 and .NET Framework 4 Training Workshop](https://reader035.vdocument.in/reader035/viewer/2022062500/56815299550346895dc0be2f/html5/thumbnails/15.jpg)