microsoft asp.net 4.0 : what's next?
DESCRIPTION
Come learn all about ASP.NET 4.0 and the new Microsoft Visual Studio improvements that will make you more productive. Hear how to build a simple video gallery Web site that takes advantage of new features to control the rendering of client ids and view state, and see how ASP.NET AJAX client-side templates and jQuery animations can be used to create a richly interactive Web application.TRANSCRIPT
ASP.NET 4.0: What’s Next?
Stephen WaltherSenior Program ManagerMicrosoft Corporation
Overview of Talk
ASP.NET supports several very different types of web applications
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
ASP.NET 3.5 Service Pack 1
Microsoft Entity FrameworkADO.NET Data ServicesDynamic DataMicrosoft AJAX Improvements
Browser HistoryScript Combining
Overview of Talk
Build a simple video gallery website:
ASP.NET Web Forms
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
ASP.NET Web Forms
ASP.NET Web Forms 4.0 enables you to build websites with more compelling front-end user experiences.
ASP.NET Web Forms
Designer-focused DeveloperRapid application development with Visual Studio designer and toolsDrag-and-drop controls from toolbox
ASP.NET Web Forms
Source-focused developer:Likes to type out HTML tagsWrites JavaScript code by handWorried about every little angle bracket and pixel
ASP.NET Web Forms
With ASP.NET 4.0, you are in control:
Control RenderingControl IDsView StateWebsite URLsXHTML and Accessibility
Code Snippets
Ctrl-K, XCtrl-K, S
Types of Code Snippets
HTMLdiv, table, img …
ASP.NETscriptmanager, sqldatasource, formview …
ASP.NET AJAXbehavior, control …
JScriptfunction, forin …
FormView Improvements
<asp:FormView ID="Formview1"
RenderTable="false" runat="server">
ListView Improvements
<asp:ListView ID="Listview1" runat="server"> <LayoutTemplate> <div id="itemContainer" runat="server" /> </LayoutTemplate> <ItemTemplate> <%# Eval("Title") %> </ItemTemplate></asp:ListView>
Control Your View State
Control.ViewStateModeEnabledDisabledInherit (default)
Control Your Client IDs
Control.ClientIdModeLegacyStaticPredictableInherit (default)
Control Your Client IDs
<system.web> <pages clientIdMode="Predictable"> </pages></system.web>
ASP.NET Routing for Search Engine OptimizationInstead of:
http://YourSite.com/Search.aspx?query=cats
You can use:http://YourSite.com/Search/cats
Other Search Engine Optimization Improvements
Page.DescriptionPage.KeywordsResponse.RedirectPermanent(new url)
Redirects
300 multiple choices (e.g. offer different languages)301 moved permanently302 found (e.g. temporary redirect)303 see other (e.g. for results of cgi-scripts)307 temporary redirect
Web Standards
XHTML StandardsStrict or Transitional?
Accessibility StandardsSection 508, WCAG, ARIA?
QueryExtender Control
Works with EntityDataSource and LinqDataSourceEnables you to filter database resultsAccepts different types of expressions:
Search RangePropertyCustom
ASP.NET Core Enhancements
Cache ExtensibilityCreate custom cache providers
Browser Capabilities ExtensibilityCreate custom browser capability providers
Session State CompressionCompress out-of-process session state
ASP.NET AJAX
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
ASP.NET AJAX
Server-SideAJAX
Client-SideAJAX
AJAXControl Toolkit
jQuery
ASP.NET AJAX
Client-SideAJAX
Client-Side TemplatesClient-Side ControlsClient-Side Data BindingRead/Write Database Data from the BrowserCross-Browser CompatibleNot tied to ASP.NET
ASP.NET AJAX
Client-SideAJAX
Refactored Microsoft AJAX Library
MicrosoftAjaxCore.jsMicrosoftAjaxComponentModel.jsMicrosoftAjaxSerialization.jsMicrosoftAjaxGlobalization.jsMicrosoftAjaxHistory.jsMicrosoftAjaxNetwork.jsMicrosoftAjaxWebServices.jsMicrosoftAjaxApplicationServices.jsMicrosoftAjaxTemplates.js (New )MicrosoftAjaxAdoNet.js (New)
ASP.NET AJAX
Client-SideAJAX
Learn more:
Come to my ASP.NET AJAX Talk Taking Ajax to the Next Level tomorrow @ 4:15
ASP.NET AJAX
jQuery
Created by John ResigOpen SourceMicrosoft Product supportIncluded with Visual Studio
Shipping right now with ASP.NET MVC
jQuery Intellisense Supported in Visual Studio 2008 (see Jeff King’s blog)Supported in Visual Studio 2010
ASP.NET AJAX
AJAXControl Toolkit
AccordionAlwaysVisibleControlAnimationAutoCompleteCalendarCascadingDropDownCollapsiblePanelConfirmButton
DragPanelDropDownDropShadowDynamicPopulateFilteredTextBoxHoverMenuListSearchMaskedEditModalPopupMultiHandleSliderMCheckBoxNoBotNumericUpDownPagingBulletedListPasswordStrengthPopupControl
RatingReorderListResizableControlRoundedCornersSliderSlideShowTabsTextBoxWatermarkToggleButtonUpdatePanelAnimationValidatorCallout
ASP.NET AJAX
AJAXControl Toolkit
2nd Most Popular CodePlex Download
Server-Side controls and control extenders
Client-Side controls and behaviors
Client-Only Library: AjaxControlToolkit-ScriptFilesOnly.zip
New features coming soon…
ASP.NET MVC
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
ASP.NET MVC
Enables a clear separation of concernsEnables testability including test-driven developmentEnables fine-grained control over HTML and JavaScript
ASP.NET MVC
Learn more:
o See Scott Hanselman’s Nerd Dinner talk tomorrow @ 2:30
o See Phil Haack’s ASP.NET MVC talk tomorrow @ 4:15
ASP.NET Dynamic Data
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
ASP.NET Dynamic Data
DynamicDataManager ControlDynamicHyperLink ControlField Templates for Email and URLSupport for Inheritance and Many-to-Many RelationshipsEntity Templates
ASP.NET Dynamic Data
Entity Templates
ASP.NET Dynamic Data
Learn more:
See David Ebbo’s talk ASP.NET 4.0 Data Access on 3/20 @ 9:00am
Conclusion
ASP.NET supports several very different types of web applications
.NET Framework
ASP.NET Framework
ASP.NETWeb
Forms
ASP.NET MVC
ASP.NET
AJAX
ASP.NETDynamic
Data
Conclusion
ASP.NET Web Forms 4.0:
Provides you with better control over the front-end user experienceHas several improvements for the source-focused developerPuts you, the developer, in control of your HTML markup and code
Conclusion
ASP.NET AJAX 4.0
Client-Side Templates and ControlsjQueryNew features coming with the AJAX Control Toolkit
Conclusion
ASP.NET MVC
Enables a clear separation of concernsEnables testability including test-driven developmentEnables fine-grained control over HTML and JavaScript
Conclusion
ASP.NET Dynamic DataMany new featuresEntity Templates
Resources
• ASP.NET 4.0 and Visual Studio 2010 Web Development Overviewhttp://www.asp.net/learn/whitepapers/
• CodePlex ASP.NET Previewshttp://www.CodePlex.com/AspNet
© 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.