+ All Categories
Home > Documents > Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa...

Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa...

Date post: 26-Mar-2015
Category:
Upload: brianna-palmer
View: 226 times
Download: 3 times
Share this document with a friend
Popular Tags:
27
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa [email protected] Overview of ASP.NET 2.0
Transcript
Page 1: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Malek KemmouTechnology Architect, Application PlatformMicrosoft Middle East and [email protected]

Overview of ASP.NET 2.0Overview of ASP.NET 2.0

Page 2: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

New Features at a Glance

DataControls

DataControls

LoginControls

LoginControls Web PartsWeb Parts Other New

Controls

Other NewControls

Master PagesMaster Pages Themesand Skins

Themesand Skins LocalizationLocalization CompilationCompilation

MembershipMembership RoleManagement

RoleManagement ProfilesProfiles ConfigurationConfiguration

SiteMaps

SiteMaps

HealthMonitoring

HealthMonitoring

OtherServices

OtherServices

Con

trols

Pag

eFr

am

ew

ork

Serv

ices

an

d A

PIs

Page 3: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

What's New in Data Access

• 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

Page 4: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Data BindingData Binding

Page 5: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

What's New for UIs

• 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

Page 6: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Theming a Page

<%@ Page Theme="BasicBlue">

Before After

Page 7: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Master PagesMaster Pages

Page 8: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

What's New in Security

• 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!

Page 9: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Membership and LoginsMembership and Logins

Page 10: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Profiles

• 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

Page 11: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Defining a Profile

<configuration> <system.web> <profile> <properties> <add name="ScreenName" /> <add name="Posts" type="System.Int32" defaultValue="0" /> <add name="LastPost" type="System.DateTime" /> </properties> </profile> </system.web></configuration>

Page 12: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Persisting Data with ProfilesPersisting Data with Profiles

Page 13: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Site Navigation

• 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

Page 14: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Data-Driven Site NavigationData-Driven Site Navigation

Page 15: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Providers

• 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

Page 16: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

The Provider Model

Membership API

MembershipData

Access OtherData Stores

Controls LoginLogin LoginStatusLoginStatus LoginViewLoginView

AccessMembershipProviderAccessMembershipProvider Other MembershipProviders

Other MembershipProviders

Membership Providers

MembershipMembership MembershipUserMembershipUser

SqlMembershipProviderSqlMembershipProvider

SQL Server

Other LoginControls

Other LoginControls

Page 17: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Configuration

• 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

Page 18: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Web Parts

• 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")

Page 19: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Web PartsWeb Parts

Page 20: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

What's New in Mobility

• Unified Control Architecture– Adapters enable pages and controls to render

markup for different device types– WML adapters provided by third parties

• Device filters

<asp:Label Text="Hello, world" RunAt="server" Nokia:Text="Hello, Nokia" Up:Text="Hello, OpenWave" />

Nokia browsers

OpenWave browsers

Page 21: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

What's New in Localization

• 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

• <asp:localize runat="server"> and more

Page 22: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Code-Behind 2.0

<%@ Page CompileWith="Hello.aspx.cs" ClassName="MyPage_aspx" %>

<html> <body> <form runat="server"> <asp:TextBox ID="Input" RunAt="server" /> <asp:Button Text="Test" OnClick="OnTest" RunAt="server" /> <asp:Label ID="Output" RunAt="server" /> </form> </body></html>

Hello.aspx

Page 23: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Code-Behind 2.0, Cont.

using System;

partial class MyPage_aspx{ void OnTest (object sender, EventArgs e) { Output.Text = "Hello, " + Input.Text; }}

Hello.aspx.cs

Page 24: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Cross-Page Posting

• 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

Page 25: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Posting Back to Another Page

<html> <body> <form runat="server"> <asp:TextBox ID="Input" RunAt="server" /> <asp:Button Text="Test" PostBackUrl="PageTwo.aspx" RunAt="server" /> </form> </body></html>

Page 26: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Get the beta

• http://www.microsoft.com/betaexperience

• Fill out the form, and you’ll get the DVD (no cost, not even shipping!!!)

Page 27: Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa malek@microsoft.com Overview of ASP.NET 2.0.

Questions


Recommended