Slide1 l.jpg
This presentation is the property of its rightful owner.
Sponsored Links
1 / 30

Building Cutting-Edge Web Solutions with Visual Studio 2005 and ASP.NET 2.0 PowerPoint PPT Presentation


  • 84 Views
  • Uploaded on
  • Presentation posted in: General

Building Cutting-Edge Web Solutions with Visual Studio 2005 and ASP.NET 2.0. Name Title Microsoft Corporation. New ASP.NET 2.0 Features. Data Controls. Login Controls. Web Parts. Other New Controls. Controls. Master Pages. Themes and Skins. Improved Client Scripting. Compilation

Download Presentation

Building Cutting-Edge Web Solutions with Visual Studio 2005 and ASP.NET 2.0

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Building cutting edge web solutions with visual studio 2005 and asp net 2 0 l.jpg

Building Cutting-Edge Web Solutions with Visual Studio 2005 and ASP.NET 2.0

Name

Title

Microsoft Corporation


New asp net 2 0 features l.jpg

New ASP.NET 2.0 Features

Data

Controls

Login

Controls

Web Parts

Other New

Controls

Controls

Master Pages

Themes

and Skins

Improved

Client Scripting

Compilation

& Localization

Page

Framework

Membership

Role

Management

Profiles

Configuration

Services

and APIs

Site

Maps

Health

Monitoring

Other New

Services


Master pages l.jpg

Master Pages

  • Content by inheritance

Master Page

Content Page


How master pages work l.jpg

How Master Pages Work

  • Master pages define common content and content placeholders

  • Content pages reference masters and fill placeholders with content

Site.master

default.aspx

http://.../default.aspx

Content-PlaceHolder

Content


Page master l.jpg

Page.Master

  • New property of System.Web.UI.Page

  • Provides content pages with programmatic access to master pages

    • Determine whether page has a master

    • Access controls defined in master

    • Access public methods and properties defined in master

  • Code-level integration of master pages and content pages


Master pages7 l.jpg

Master Pages

NameTitle

Company


Data source controls l.jpg

Data Source Controls

  • Declarative ("no-code") data binding

Sql-

DataSource

Object-

DataSource

Access-

DataSource

Xml-

DataSource

SiteMap-

DataSource

Data

Component

Site Map

Provider

SQL

Databases

Any

Data

Access

Databases

XML

Data

Site Maps


Data controls l.jpg

Data Controls

  • New data-bound controls

  • Built-in support for selecting, editing, paging, sorting, and more

GridView

DetailsView

FormView


2 way data binding l.jpg

2-Way Data Binding

  • Data controls supply editing UIs

    • AutoGenerateXxxButton properties

    • Insert/EditRowStyle properties

    • Inserting/ed, Updating/ed, Deleting/ed events

  • Data source controls supply logic

    • Insert/Update/DeleteCommand properties

    • Insert/Update/DeleteParameters properties

    • Inserting/ed, Updating/ed, Deleting/ed events

  • Visual Studio supplies the glue


Caching l.jpg

Caching

  • Many data source controls provide built-in caching support

    • EnableCaching - Enables/disables caching

    • CacheDuration - Length of time (seconds)

    • CacheExpirationPolicy - Sliding or absolute

    • CacheKeyDependency/SqlCacheDepedency - Cache dependencies

  • No-code data caching!


Cachesync l.jpg

CacheSync

  • SQL cache dependencies

    • Couple cached items to database entities

    • Change to underlying data evicts corresponding item(s) from cache

  • Works with SQL Server 7, SQL Server 2000, and SQL Server 2005

    • Requires database prep for SQL Server 7 and SQL Server 2000 (Aspnet_regsql.exe)

    • "Just works" with SQL Server 2005

  • Much-requested feature of ASP.NET


Data access l.jpg

Data Access

NameTitle

Company


Membership service l.jpg

Membership Service

  • Manages users and credentials

    • Declarative access via Web Site Admin Tool

    • Programmatic access via Membership API

  • Vastly simplifies forms authentication

    • Provides logic for validating user names and passwords, creating accounts, and more

    • Provides data store for storing credentials, e-mail addresses, and other membership data

  • Provider-based for flexible data storage


Membership schema l.jpg

Membership Schema

Controls

Login

LoginStatus

LoginView

Other

Membership API

Membership

MembershipUser

Membership Providers

SqlMembershipProvider

ActiveDirectory-MembershipProvider

Other Providers

Membership

Data

SQL Server

Active

Directory

Other

Data Stores


Role manager l.jpg

Role Manager

  • Role-based security in a box

    • Declarative access via Web Site Admin Tool

    • Programmatic access via Roles API

  • Simplifies adding role-based security to sites that employ forms authentication

    • Maps users to roles on each request

    • Provides data store for role information

  • Provider-based for flexible data storage


Role management schema l.jpg

Role Management Schema

Controls

Login

LoginStatus

LoginView

Other

Role API

Roles

Role Providers

SqlRole-Provider

AuthorizationStore-RoleProvider

WindowsToken-RoleProvider

Other Providers

Role Data

SQL Server

Authorization

Manager

("AzMan")

Other

Data Stores


Login controls l.jpg

Login Controls

  • UI and logic for security-related tasks

Login

LoginName

LoginStatus

Membership &

Role Management

LoginView

CreateUser-

Wizard

Change-

Password

Password-

Recovery


Loginview l.jpg

LoginView

<asp:LoginView ID="LoginView1" Runat="server">

<AnonymousTemplate>

<!-- Content seen by unauthenticated users -->

</AnonymousTemplate>

<LoggedInTemplate>

<!-- Content seen by authenticated users -->

</LoggedInTemplate>

<RoleGroups>

<asp:RoleGroup Roles="Administrators">

<ContentTemplate>

<!-- Content seen by administrators -->

</ContentTemplate>

</asp:RoleGroup>

...

</RoleGroups>

</asp:LoginView>


Membership and roles l.jpg

Membership and Roles

NameTitle

Company


Profiles l.jpg

Profiles

  • Store per-user data persistently

    • Strongly typed access (unlike session state)

    • On-demand lookup (unlike session state)

    • Long-lived (unlike session state)

    • Authenticated and anonymous users

    • Rich type support (including custom types)

  • Accessed through dynamically compiled HttpProfileBase derivatives

  • Provider-based for flexible data storage


Profile definition l.jpg

Profile Definition

<profile>

<properties>

<!-- String property -->

<add name="MyName" />

<!-- Int32 property with default value -->

<add name="MyFavoriteNumber" type="System.Int32"

defaultValue="0" />

<!-- DateTime property -->

<add name="MyBirthday" type="System.DateTime" />

<!-- Custom type; auth. and anon. users -->

<add name="MyItems" type="ShoppingCart"

serializeAs="binary" allowAnonymous="true" />

</properties>

</profile>


Profiles23 l.jpg

Profiles

NameTitle

Company


Data driven site navigation l.jpg

Data-Driven 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" controls

  • Public site map API provides foundation

  • Provider-based for flexibility


Site navigation schema l.jpg

Site Navigation Schema

Controls

Menu

TreeView

SiteMap-

DataSource

SiteMapPath

Site Map API

SiteMap

SiteMapNode

SiteMapNode

SiteMapNode

Providers

XmlSiteMapProvider

Other Site Map

Providers

Site Maps

Web.sitemap

Other

Data Stores


Xml site map l.jpg

XML Site Map

<?xml version="1.0" encoding="utf-8" ?>

<siteMap>

<siteMapNode>

<siteMapNode title="Home" url="~/Default.aspx" />

<siteMapNode title="Tickets" url="~/Tickets.aspx" />

<siteMapNode title="Concert Gear" url="~/Gear.aspx" />

<siteMapNode title="Backstage"

url="~/MembersOnly/Backstage.aspx" />

<siteMapNode title="Preferences"

url="~/MembersOnly/Preferences.aspx" />

</siteMapNode>

</siteMap>


Security trimming l.jpg

Security Trimming

  • Feature of site map providers

  • Varies navigation UI based on roles

<?xml version="1.0" encoding="utf-8" ?>

<siteMap>

<siteMapNode roles="*">

<siteMapNode title="Home" url="~/Default.aspx" />

<siteMapNode title="Tickets" url="~/Tickets.aspx" />

<siteMapNode title="Concert Gear" url="~/Gear.aspx" />

<siteMapNode title="Backstage" roles="Members"

url="~/MembersOnly/Backstage.aspx" />

<siteMapNode title="Preferences" roles="Members"

url="~/MembersOnly/Preferences.aspx" />

</siteMapNode>

</siteMap>


Site navigation l.jpg

Site Navigation

NameTitle

Company


Vsip partners l.jpg

VSIP Partners


Slide30 l.jpg

© 2005 Microsoft Corporation. All rights reserved.

This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


  • Login