Top Banner
Visual Studio 2010 and .NET Framework 4 Training Workshop
15

Visual Studio 2010 and .NET Framework 4 Training Workshop

Jan 24, 2016

Download

Documents

Monty^

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 Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Visual  Studio 2010 and .NET Framework 4 Training Workshop

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

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

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

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

ViewState ModeViewState ModeIf you do this…

Then neither this…

Nor this…

Will work

Page 6: Visual  Studio 2010 and .NET Framework 4 Training Workshop

Client IDViewState ModeClient IDViewState Mode

Page 7: Visual  Studio 2010 and .NET Framework 4 Training Workshop

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

RoutingRouting

Page 9: Visual  Studio 2010 and .NET Framework 4 Training Workshop

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

What investments have been made to the existing controls?

Page 11: Visual  Studio 2010 and .NET Framework 4 Training Workshop

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

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

QueryExtenderControl EnhancementsQueryExtenderControl Enhancements

Page 14: Visual  Studio 2010 and .NET Framework 4 Training Workshop

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