Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India
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
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 (more than 50 in all) Menus, TreeViews, Wizards, and more
Master Pages
Themes & Skins
Data source controls Declarative 2-way data binding Data controls GridView - Like the DataGrid, only better DetailsView - Companion to GridView SQL cache dependencies Key cached items to database entities Simplified data binding expressions
Declarative Data Binding
Data Controls allow template editing Item Edit Insert Header Footer Can nest controls within each type Two-way to parent
Templates
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!
Membership and Logins
Login APIs Allows use of advanced features Customize logins and registrations Perform management activities on users
Using the Login API
Allows segregation of users into groups or “roles” Can allow or deny access based on these Use the Roles API to perform management features
Using Roles and Roles API
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
Persisting Data with Profiles
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
Data-Driven Site Navigation
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
Web Site Administration Tool
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
Localization
New model for storing and managing state Makes storage adaptable to different media Used by many key ASP.NET services Membership service Role Management service and more Built-in providers make ASP.NET state storage very flexible Custom providers make it infinitely flexible
Membership API Membership Data Access Other Data Stores Controls Login LoginStatus LoginView AccessMembershipProvider Other Membership Providers Other Membership Providers Membership Providers Membership MembershipUser SqlMembershipProvider SQL Server Other Login Controls Other Login Controls
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
Web Site Administration Tool
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 Intercommunication ("connections")
Web Parts
Autocompile anything CS files, VB files, RESX files, and so on Simply drop files into special directories Extensible with custom build providers New code-behind model (code-behind 2.0) Fixes fragilities in version 1 Relies on partial class support in compilers Precompile and deploy without source
vroot Code Resources CS VB WSDL XSD RESX RESOURCE Files auto- compiled on first access
Hello.aspx
using System; partial class MyPage_aspx { void OnTest (Object sender, EventArgs e) { Output.Text = "Hello, " + Input.Text; } Hello.aspx.cs
Precompile.axd precompiles sites in place to avoid first-access delays
Aspnet_compiler.exe precompiles sites and deploys without source code
Dynamic Compilation