ASP.NET 4.0 Features

0

No comments posted yet

Comments

Slide 2

Estimated Time: 2 minutes For the entire life of ASP.NET it has been seen as a single framework that included both runtime and presentational aspects. This includes core features such as roles and globalization, as well as WebForms features such as master pages and user controls.

Slide 1

Nithin Mohan T K Technology Specialist Blog @ www.nithinmohantk.info Contact @ nithinmohantk@nithinmohantk.info ASP.NET 4.0: What’s Next?

Slide 2

ASP.NET Then… Caching Modules Handlers Intrinsics Pages Controls Globalization Profile Master Pages Membership Roles Etc. ASP.NET One web application framework to rule them all…

Slide 3

ASP.NET supports several very different types of web applications Overview of Talk .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 4

Microsoft Entity Framework ADO.NET Data Services Dynamic Data Routing ASP.NET MVC Microsoft AJAX Improvements Browser History Script Combining ASP.NET 3.5 Service Pack 1

Slide 5

ASP.NET Web Forms .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 6

ASP.NET Web Forms 4.0 enables you to build websites with more compelling front-end user experiences. ASP.NET Web Forms

Slide 7

Designer-focused Developer Rapid application development with Visual Studio designer and tools Drag-and-drop controls from toolbox ASP.NET Web Forms

Slide 8

Source-focused developer: Likes to type out HTML tags Writes JavaScript code by hand Worried about every little angle bracket and pixel ASP.NET Web Forms

Slide 9

With ASP.NET 4.0, you are in control: Control Rendering Control IDs View State Website URLs XHTML and Accessibility ASP.NET Web Forms

Slide 10

Code Snippets Ctrl-K, X Ctrl-K, S

Slide 11

HTML div, table, img … ASP.NET scriptmanager, sqldatasource, formview … ASP.NET AJAX behavior, control … JScript function, forin … Types of Code Snippets

Slide 12

FormView Improvements <asp:FormView ID="Formview1" RenderTable="false" runat="server">

Slide 13

ListView Improvements <asp:ListView ID="Listview1" runat="server"> <LayoutTemplate> <div id="itemContainer" runat="server" /> </LayoutTemplate> <ItemTemplate> <%# Eval("Title") %> </ItemTemplate> </asp:ListView>

Slide 14

Control.ViewStateMode Enabled Disabled Inherit (default) Control Your View State

Slide 15

Control.ClientIdMode Legacy Static Predictable Inherit (default) Control Your Client IDs

Slide 16

<system.web> <pages clientIdMode="Predictable"> </pages> </system.web> Control Your Client IDs

Slide 17

Instead of: http://YourSite.com/Search.aspx?query=cats You can use: http://YourSite.com/Search/cats ASP.NET Routing for Search Engine Optimization

Slide 18

Page.Description Page.Keywords Response.RedirectPermanent(new url) Other Search Engine Optimization Improvements

Slide 19

300 multiple choices (e.g. offer different languages) 301 moved permanently 302 found (e.g. temporary redirect) 303 see other (e.g. for results of cgi-scripts) 307 temporary redirect Redirects

Slide 20

XHTML Standards Strict or Transitional? Accessibility Standards Section 508, WCAG, ARIA? Web Standards

Slide 21

Works with EntityDataSource and LinqDataSource Enables you to filter database results Accepts different types of expressions: Search Range Property Custom QueryExtender Control

Slide 22

Cache Extensibility Create custom cache providers Browser Capabilities Extensibility Create custom browser capability providers Session State Compression Compress out-of-process session state URL Routing ASP.NET Core Enhancements

Slide 23

Web.Config Minification Major configuration elements has been moved to machine.config applications now inherit these settings This allows the Web.config file in ASP.NET 4 applications either to be empty or to contain just the following lines, which specify for Visual Studio what version of the framework the application is targeting: <?xml version="1.0"?> <configuration> <system.web> <compilation targetFramework="4.0" /> </system.web> </configuration> ASP.NET Core Enhancements .. Cont….

Slide 24

Auto-Start Web Applications A new scalability feature named auto-start that directly addresses this scenario is available when ASP.NET 4 runs on IIS 7.5 on Windows Server 2008 R2. To use the auto-start feature, an IIS administrator sets an application pool in IIS 7.5 to be automatically started by using the following configuration in the applicationHost.config file: <applicationPools> <add name="MyApplicationPool" startMode="AlwaysRunning" /> </applicationPools> Permanently Redirecting a Page RedirectPermanent("/newpath/foroldcontent.aspx"); makes it easy to issue HTTP 301 Moved Permanently responses ASP.NET Core Enhancements .. Cont….

Slide 25

The Incredible Shrinking Session State ASP.NET provides two default options for storing session state across a Web farm a session-state provider that invokes an out-of-process session-state server a session-state provider that stores data in a Microsoft SQL Server database Limitation session state has to be serialized before it is sent to remote storage Solution ASP.NET 4 introduces a new compression option for both kinds of out-of-process session-state providers the compressionEnabled configuration option is true ASP.NET will compress (and decompress) serialized session state by using the .NET Framework System.IO.Compression.GZipStream class. ASP.NET Core Enhancements .. Cont….

Slide 26

Expanding the Range of Allowable URLs <httpRuntime maxRequestPathLength="260" maxQueryStringLength="2048" /> Request URL Character Check ASP.NET 4 also enables you to configure the characters that are used by the URL character check.  When ASP.NET finds an invalid character in the path portion of a URL, it rejects the request and issues an HTTP 400 error.  <httpRuntime requestPathInvalidChars="<,>,*,%,&,:,\" /> Extensible Request Validation use custom request-validation logic To extend request validation, you create a class that derives from the new System.Web.Util.RequestValidator type ASP.NET Core Enhancements .. Cont….

Slide 27

configure the application (in the httpRuntime section of the Web.config file) to use the custom type Extensible HTML, URL, and HTTP Header Encoding HTML encoding; URL encoding; HTML attribute encoding encoding of outbound HTTP headers ASP.NET Core Enhancements .. Cont….

Slide 28

ASP.NET AJAX .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 29

ASP.NET AJAX Server-Side AJAX Client-Side AJAX AJAX Control Toolkit jQuery

Slide 30

Client-Side Templates Client-Side Controls Client-Side Data Binding Read/Write Database Data from the Browser Cross-Browser Compatible Not tied to ASP.NET ASP.NET AJAX Client-Side AJAX

Slide 31

Refactored Microsoft AJAX Library MicrosoftAjaxCore.js MicrosoftAjaxComponentModel.js MicrosoftAjaxSerialization.js MicrosoftAjaxGlobalization.js MicrosoftAjaxHistory.js MicrosoftAjaxNetwork.js MicrosoftAjaxWebServices.js MicrosoftAjaxApplicationServices.js MicrosoftAjaxTemplates.js (New ) MicrosoftAjaxAdoNet.js (New) ASP.NET AJAX Client-Side AJAX

Slide 32

Created by John Resig Open Source Microsoft Product support Included 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 jQuery

Slide 33

Accordion AlwaysVisibleControl Animation AutoComplete Calendar CascadingDropDown CollapsiblePanel ConfirmButton ASP.NET AJAX AJAX Control Toolkit DragPanel DropDown DropShadow DynamicPopulate FilteredTextBox HoverMenu ListSearch MaskedEdit ModalPopup MultiHandleSlider MCheckBox NoBot NumericUpDown PagingBulletedList PasswordStrength PopupControl Rating ReorderList ResizableControl RoundedCorners Slider SlideShow Tabs TextBoxWatermark ToggleButton UpdatePanelAnimation ValidatorCallout

Slide 34

ASP.NET AJAX AJAX Control 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…

Slide 35

ASP.NET MVC .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 36

Enables a clear separation of concerns Enables testability including test-driven development Enables fine-grained control over HTML and JavaScript ASP.NET MVC

Slide 37

ASP.NET Dynamic Data .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 38

DynamicDataManager Control DynamicHyperLink Control Field Templates for Email and URL Support for Inheritance and Many-to-Many Relationships Entity Templates ASP.NET Dynamic Data

Slide 39

Entity Templates ASP.NET Dynamic Data

Slide 40

ASP.NET supports several very different types of web applications Conclusion .NET Framework ASP.NET Framework ASP.NET Web Forms ASP.NET MVC ASP.NET AJAX ASP.NET Dynamic Data

Slide 41

ASP.NET Web Forms 4.0: Provides you with better control over the front-end user experience Has several improvements for the source-focused developer Puts you, the developer, in control of your HTML markup and code Conclusion

Slide 42

ASP.NET AJAX 4.0 Client-Side Templates and Controls jQuery New features coming with the AJAX Control Toolkit Conclusion

Slide 43

ASP.NET MVC Enables a clear separation of concerns Enables testability including test-driven development Enables fine-grained control over HTML and JavaScript Conclusion

Slide 44

Conclusion ASP.NET Dynamic Data Many new features Entity Templates

Slide 45

ASP.NET 4.0 and Visual Studio 2010 Web Development Overview http://www.asp.net/learn/whitepapers/ CodePlex ASP.NET Previews http://www.CodePlex.com/AspNet Resources

Slide 46

© 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.

Summary: ASP.NET 4.0 Features

Tags: asp.net 4.0 features nithin mohan t k

URL: