Introduction to ASP.NET 2.0
Essential ASP.NET 2.0 A Webcast Series for the Web Developer
MSDN Webcast Series – Part 1 of 15
Fritz Onion Pluralsight http://pluralsight.com/fritz/
Essential ASP.NET 2.0
A 15-part webcast series for Web developers 45-Minute lectures with accompanying labs Date
Thu, Aug. 4 1:00 PM Pacific Time Thu, Aug. 11 1:00 PM Pacific Time Thu, Aug. 18 1:00 PM Pacific Time Thu, Aug. 25 1:00 PM Pacific Time Thu, Sep. 1 1:00 PM Pacific Time Thu, Sep. 8 1:00 PM Pacific Time ... Thu, Dec. 1 1:00 PM Pacific Time
Topic
Introduction to ASP.NET 2.0 Architecture Master pages & themes New controls in ASP.NET 2.0 Data Binding I Client State ... Caching
Agenda
Building a database-backed Web application with Microsoft® ASP.NET 2.0
Briefly introduce several features
New features of Microsoft® Visual Studio® .NET 2005 Master pages Themes and skins Navigation controls Profile data GridView, DetailsView and declarative data binding
Discuss some of the implications of each of these new features
Visual Studio 2005
Microsoft® FrontPage® Server Extensions not required
File system, Microsoft® Internet Information Services (IIS), FTP, and FPSE supported
Directory-based projects
Project can be edited from anywhere (no project file) Build-step has been eliminated
more on pre-compilation features next
HTML source preservation
Switching between designer and source isomorphic
'Common tasks' menu for controls
Shows common tasks in designer for all controls
Microsoft® IntelliSense® everywhere
Code behind, inline code, HTML, config files, etc.
Master Pages
Site-wide templates now possible with master pages
.master acts as template with ContentPlaceHolders Content pages (.aspx) point to .master Content controls map content onto placeholders
default.aspx
left pane
site.master
header left pane placeholder footer
header page-specific pagecontent footer left pane
page1.aspx
header page-specific pagecontent footer
Themes and Skins
Support for 'skinnable' sites using themes
<%@ Page Language="C#" Theme="BasicBlue" %> <%@ Page Language="C#" Theme="SmokeAndGlass" %>
Navigation Controls
Common data source-backed navigation controls
Menu TreeView SiteMapPath (breadcrumbs)
Declarative Data Sources
SqlDataSource and friends enable much richer designer support for data-bound controls
Binding to Declarative Data Sources
Data binding can now be accomplished with no code
Extensive designer support Integration with server explorer Standard binding model easily customized
GridView
Replaces "beloved" DataGrid
Many similar features but rebuilt from ground up to be more modular and flexible Columns are now called Fields New field types
ImageField CheckBoxField HyperLinkField
Intelligent interaction with data source controls
Automatic pagination, editing, deleting, and sorting
DetailsView
Supports single-row display/editing
Useful for master/detail scenarios Supports paging, editing, deleting, and inserting!
Profile
Profile provides a persistent, per-client data store
Backed by a provider that maps into a specific database
Anonymous information storage possible
GUID used to identify unknown clients
Strongly-typed access to personalization
Usage is even easier than Session state
Profile Example
Enabling personalization
Session Summary
ASP.NET 2.0 brings many new features
Visual Studio .NET 2005 - something for everyone Master pages - site-wide template pages Themes and skins - site-wide look and feel Profile - persistent per-client state New data controls: GridView and DetailsView New declarative data binding model
Pluralsight courses
For in-depth instructor-led training on Microsoft® .NET
http://pluralsight.com/training.aspx
Courses available on
ASP.NET 2.0, Web Services, Security, SharePoint®, ...
Instructors include
Fritz Onion Joe Hummel Aaron Skonnard Ted Pattison Keith Brown
Resources
Helpful resources for further study
Microsoft ASP.NET Quickstart tutorials
"ASP.NET 2.0 QuickStart tutorial" http://beta.asp.net/quickstart/aspnet/
Lab Work
There is an associated lab with this Webcast
Putting together a simple site with ASP.NET 2.0 Hands-on experience with all of the features discussed today Requires Visual Studio .NET 2005 Beta 2 to run (express Web edition is fine)
Download lab, demos, and .pdf of slides from:
http://pluralsight.com/fritz/webcasts.aspx
Questions and Answers
Submit text questions using the “Ask” button. Don’t forget to fill out the survey. For upcoming and previously live webcasts:
www.microsoft.com/webcasts
Got webcast content ideas? Contact us at:
http://go.microsoft.com/fwlink/?LinkId=41781
Today's webcast was presented using Microsoft Office Live Meeting. Get a free 14 day trial
http://www.microsoft.com/presentlive