Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4

Similar presentations


Presentation on theme: "Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4"— Presentation transcript:

1 Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4
Jon Galloway Community PM – ASP.NET

2 The Objective Objective: Fix this old and busted site

3 Gear Up with ASP.NET 4 Tools
Cleaner HTML (+8 dexterity, +10 charisma) Enable Dynamic Data (+9 speed, +7 agility) Routing (+9 agility) Easy AJAX (+8 speed) Simple Charts (+7 boss points)

4 The Plan Data Makeover Routing HTML Cleanup AJAX Charts

5 Data Makeover Add an Entity Framework model Enable Dynamic Data
Add filtering with Query Extender

6 Data Makeover Enable Dynamic Data
GridView.EnableDynamicData(typeof(Product)) One line of code turns on many Dynamic Data features: Automatic validation Support for Data Annotations on objects to control validation and display properties Support for field templates for customizing UI behavior based on data type

7 Routing Turn this: /directory/ProductList.aspx?CategoryID=205 &LanguageID=1033 Into this: /en-US/products/beverages

8 HTML Cleanup Step 0: Why are we doing this?
Much easier to do CSS styling Simpler AJAX Easier to work with More efficient

9 HTML Cleanup [DEMO] Start with ASP.NET 4 default style and Master Page
Set controlRenderingCompatibilityVersion to 4.0 Disable ViewState at page level Demonstrate predictable ClientID Styling AJAX (next) Use CSS for simple mobile support

10 AJAX Use CDN for AJAX Scripts Use jQuery (with predictable ClientID’s)
Using new jQuery templating (just announced!)

11 Charting

12 2/24/2019 5:39 AM © 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.

13 2/24/2019 5:39 AM © 2010 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. © 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.


Download ppt "Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4"

Similar presentations


Ads by Google