Presentation is loading. Please wait.

Presentation is loading. Please wait.

What’s new for web developers? Mike Ormond, Developer Evangelist Manager …

Similar presentations


Presentation on theme: "What’s new for web developers? Mike Ormond, Developer Evangelist Manager …"— Presentation transcript:

1 What’s new for web developers? Mike Ormond, Developer Evangelist Manager mormond@microsoft.com http://blogs.msdn.com/mikeormond …

2 New Features at a Glance Data Controls Data Controls Login Controls Login Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Mobility and Localization Mobility and Localization Compilation Membership Role Management Role Management Profiles Configuration Site Maps Site Maps Health Monitoring Health Monitoring Other Services Other Services Controls Page Framework Services and APIs

3 What’s new for… Data Access User Interface Design Security & Personalisation Configuration & Admin Behind the Scenes

4 What’s New for… …Data Access Data Controls Data Controls Page Framework Services and APIs

5 What’s New for… …Data Access Data controls GridView - Like the DataGrid, only better DetailsView - Companion to GridView Data source controls Declarative 2-way data binding SQL cache dependencies Key cached items to database entities

6 Data Access Demo New Data Controls Declarative Data Binding Binding to Object Data Sources Paging, Sorting and Editing SQL Cache Dependencies

7 What’s New for… …User Interface Design Data Controls Data Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Site Maps Site Maps Controls Page Framework Services and APIs Mobility and Localization Mobility and Localization

8 What’s New for… …User Interface Design Master pages "Visual inheritance" for Web pages Applied declaratively or programmatically Themes and skins Theme controls, pages, and entire sites Applied declaratively or programmatically New controls (around 50 in all) Menus, TreeViews, Wizards, and more

9 User Interface Design Demo Master Pages Themes Wizard Control

10 Web Parts …User Interface Design Framework for building portal-style apps Patterned after SharePoint Portal Server System.Web.UI.WebControls.WebParts Rich UIs with minimal code Edit page layout using drag-and-drop Edit appearance and behavior and more Seamless personalization “Connections” between web parts

11 Site Navigation …User Interface Design Navigation UIs are tedious to implement Especially if they rely on client-side script New controls simplify site navigation TreeView and Menu - Navigation UI SiteMapDataSource - XML site maps SiteMapPath - "Bread crumb" control Public API provides foundation for controls Provider-based for flexibility

12 Validation Groups …User Interface Design Validation controls can be grouped using new ValidationGroup property, implemented by: Validation controls Button, LinkButton, and ImageButton Allows page to post back when validators in target group are satisfied Addresses limitation in ASP.NET 1.x

13 User Interface Design Demo Web Parts Site Navigation Validation Groups

14 Localization …User Interface Design Auto-culture handling Declarative mapping of Accept-Language headers to relevant thread properties Simplified resource handling Declarative mapping of control properties to resources using expressions Strongly typed programmatic resource loading and more and more

15 User Interface Design Demo Localization

16 What’s New for… …Security & Personalisation Data Controls Data Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Site Maps Site Maps Controls Page Framework Services and APIs Mobility and Localization Mobility and Localization Login Controls Login Controls Membership Role Management Role Management Profiles

17 What’s New for… …Security & Personalisation Membership service Service for managing users and credentials Provider-based for flexible data storage Login controls Controls for logging in, creating new users, recovering lost passwords, and more Role Management service Combine forms authentication and role-based authorization without writing code!

18 Validating Logins …Security & Personalisation if (Membership.ValidateUser (UserName.Text, Password.Text)) RedirectFromLoginPage (UserName.Text, RememberMe.Checked);

19 Profiles …Security & Personalisation Store per-user data persistently Strongly typed access (unlike session state) On-demand lookup (unlike session state) Long-lived (unlike session state) Supports authenticated and anonymous users Accessed through dynamically compiled HttpProfileBase derivatives (HttpProfile) Provider-based for flexible data storage

20 Security & Personalisation Demo Membership & Logins Persisting Data with Profiles

21 What’s New for… …Configuration and Admin Data Controls Data Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Site Maps Site Maps Controls Page Framework Services and APIs Mobility and Localization Mobility and Localization Login Controls Login Controls Membership Role Management Role Management Profiles Configuration Health Monitoring Health Monitoring

22 What’s New for… …Configuration and Admin Administrative tools ASP.NET MMC snap-in Web Site Administration Tool (Webadmin.axd) Configuration API Read/write access to configuration settings Simplified custom configuration sections Instrumentation Perf counters, health monitoring, and more

23 Configuration and Admin Demo Web Site Administration Tool Encrypting Config Sections Custom Web Events

24 What’s New… …Behind the scenes Data Controls Data Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Site Maps Site Maps Controls Page Framework Services and APIs Mobility and Localization Mobility and Localization Login Controls Login Controls Membership Role Management Role Management Profiles Configuration Health Monitoring Health Monitoring Compilation Other Services Other Services

25 What’s New… …Behind the scenes The Provider Model Compilation Autocompile, code-behind & pre-compilation Cross-Page Posting Client Callbacks Improvements to View State

26 The Provider Model …Behind the scenes Membership API Membership Data SQL Express Other Data Stores Controls Login LoginStatus LoginView Other Membership Providers Other Membership Providers Membership Providers Membership MembershipUser SqlMembershipProvider SQL Server Other Login Controls Other Login Controls

27 Behind the Scenes Demo The Provider Model

28 Compilation …Behind the scenes Autocompile anything CS files, VB files, RESX files, and so on Simply drop files into special directories Extensible with custom build providers Precompile and deploy without source Aspnet_compiler.exe New code-behind model (code-behind 2.0) Fixes fragilities in version 1 Relies on partial class support in compilers

29 Code-Behind 2.0 …Behind the scenes Hello.aspx using System; partial class MyPage_aspx : Page { protected void OnTest (Object sender, EventArgs e) { Output.Text = "Hello, " + Input.Text; } } Hello.aspx.cs

30 Cross-Page Posting …Behind the scenes Pages can now post back to other pages Relevant properties: control.PostBackUrl - Identifies postback target Page.PreviousPage - Returns reference to page that originated a cross-page postback PreviousPage.IsCrossPagePostBack - Reveals whether a cross-page postback occurred @ PreviousPageType directive provides strongly typed access to previous page

31 Client Callbacks …Behind the scenes "Lightweight" postbacks Client-side callback manager transmits asynchronous XML-HTTP requests to server Server receives and processes the request, but does not re-render the page Callback manager receives the response and notifies the client via registered callback Requires Internet Explorer 5.0 or higher Great way to improve UI responsiveness

32 Behind the Scenes Demo Cross-Page Postbacks Client Callbacks

33 How Client Callbacks Work …Behind the scenes ClientCallback Manager Page Client initiates callback by calling function returned by GetCallback- EventReference Callback manager launches async XML-HTTP call to server Callback manager is notified that the call completed Client is notified that the call completed and handed the result ClientServer Page's RaiseCall- backEvent method is called 1 1 2 2 3 3 4 4 5 5

34 View State Improvements …Behind the scenes More efficient serialization format Faster and smaller Partitioned View State Control State - behaviours View State - contents Declarative Data Binding Platform makes smart decisions for you

35 Further Information… …where to go ASP.NET Developer Center (http://msdn.microsoft.com/asp.net) http://msdn.microsoft.com/asp.net ASP.NET 2.0 (http://msdn.microsoft.com/asp.net/whidbey) http://msdn.microsoft.com/asp.net/whidbey Update on changes for Beta 2 Feature postponed for ASP.NET Beta 2 Newsgroups & Forums http://forums.asp.net http://lab.msdn.microsoft.com/vs2005/community/newsgroups/default.aspx MSDN Magazine Articles (http://msdn.microsoft.com/msdnmag) http://msdn.microsoft.com/msdnmag Filter on “ASP / ASP.NET” for examples like: “An overview of the New Services, Controls and Features in ASP.NET 2.0” Jun 04 Data Points: “Data Source Controls in ASP.NET 2.0” Jan 05 Cutting Edge: “The ASP.NET 2.0 Wizard Control” Nov 04 “Wicked Code: Five Undiscovered Features on ASP.NET 2.0” Feb 05 “ASP.NET 2.0: Speed Up Your Site with the Improved View State in ASP.NET 2.0” Oct 04 Webcasts (http://msdn.microsoft.com/asp.net/support/multimedia) http://msdn.microsoft.com/asp.net/support/multimedia Learn ASP.NET 2.0 with Jeff Prosise Books Introducing MS ASP.NET 2.0 by Dino Esposito (MS Press) ASP.NET 2.0 Beta Preview by Bill Evjen (Wrox Press)

36 New Features at a Glance Data Controls Data Controls Login Controls Login Controls Web Parts Other New Controls Other New Controls Master Pages Themes and Skins Themes and Skins Mobility and Localization Mobility and Localization Compilation Membership Role Management Role Management Profiles Configuration Site Maps Site Maps Health Monitoring Health Monitoring Other Services Other Services Controls Page Framework Services and APIs

37 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "What’s new for web developers? Mike Ormond, Developer Evangelist Manager …"

Similar presentations


Ads by Google