Malek Kemmou - PowerPoint PPT Presentation

About This Presentation
Title:

Malek Kemmou

Description:

GridView - Like the DataGrid, only better. DetailsView - Companion to GridView ... Store per-user data persistently. Strongly typed access (unlike session state) ... – PowerPoint PPT presentation

Number of Views:110
Avg rating:3.0/5.0
Slides: 28
Provided by: akem4
Category:

less

Transcript and Presenter's Notes

Title: Malek Kemmou


1
Overview of ASP.NET 2.0
  • Malek Kemmou
  • Technology Architect, Application Platform
  • Microsoft Middle East and Africa
  • malek_at_microsoft.com

2
New Features at a Glance
Data Controls
Login Controls
Web Parts
Other New Controls
Controls
Master Pages
Themes and Skins
Localization
Compilation
Page Framework
Membership
Role Management
Profiles
Configuration
Services and APIs
Site Maps
Health Monitoring
Other Services
3
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

4
Data Binding
5
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

6
Theming a Page
lt_at_ Page Theme"BasicBlue"gt
Before
After
7
Master Pages
8
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!

9
Membership and Logins
10
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

11
Defining a Profile
ltconfigurationgt ltsystem.webgt ltprofilegt
ltpropertiesgt ltadd name"ScreenName" /gt
ltadd name"Posts" type"System.Int32"
defaultValue"0" /gt ltadd name"LastPost"
type"System.DateTime" /gt lt/propertiesgt
lt/profilegt lt/system.webgt lt/configurationgt
12
Persisting Data with Profiles
13
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

14
Data-Driven Site Navigation
15
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

16
The Provider Model
Controls
Login
LoginStatus
LoginView
Other Login Controls
Membership API
Membership
MembershipUser
Membership Providers
AccessMembershipProvider
Other Membership Providers
SqlMembershipProvider
Membership Data
Access
SQL Server
Other Data Stores
17
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

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

19
Web Parts
20
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

ltaspLabel Text"Hello, world" RunAt"server"
NokiaText"Hello, Nokia" UpText"Hello,
OpenWave" /gt
OpenWave browsers
Nokia browsers
21
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 lt gt expressions
  • Strongly typed programmatic resource loading
  • ltasplocalize runat"server"gt and more

22
Code-Behind 2.0
Hello.aspx
lt_at_ Page CompileWith"Hello.aspx.cs"
ClassName"MyPage_aspx" gt lthtmlgt ltbodygt
ltform runat"server"gt ltaspTextBox
ID"Input" RunAt"server" /gt ltaspButton
Text"Test" OnClick"OnTest" RunAt"server" /gt
ltaspLabel ID"Output" RunAt"server" /gt
lt/formgt lt/bodygt lt/htmlgt
23
Code-Behind 2.0
Hello.aspx
lt_at_ Page CompileWith"Hello.aspx.vb"
ClassName"MyPage_aspx" gt lthtmlgt ltbodygt
ltform runat"server"gt ltaspTextBox
ID"Input" RunAt"server" /gt ltaspButton
Text"Test" OnClick"OnTest" RunAt"server" /gt
ltaspLabel ID"Output" RunAt"server" /gt
lt/formgt lt/bodygt lt/htmlgt
24
Code-Behind 2.0, Cont.
Hello.aspx.cs
using System partial class MyPage_aspx
void OnTest (object sender, EventArgs e)
Output.Text "Hello, " Input.Text
25
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
  • _at_ PreviousPageType directive provides strongly
    typed access to previous page

26
Posting Back to Another Page
lthtmlgt ltbodygt ltform runat"server"gt
ltaspTextBox ID"Input" RunAt"server" /gt
ltaspButton Text"Test" PostBackUrl"PageTwo.aspx"
RunAt"server" /gt lt/formgt lt/bodygt lt/htmlgt
27
Get the beta
  • http//www.microsoft.com/betaexperience
  • Fill out the form, and youll get the DVD (no
    cost, not even shipping!!!)

28
Questions
Write a Comment
User Comments (0)
About PowerShow.com