Professional Documents
Culture Documents
NET
Microsoft Corporation
Session Prerequisites
Demonstrations
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Introduction to .NET
1st Generation
Client Logic
Servers
Data, Hosts
Biz Logic
Browsers
OS
Services
Applications largely operating
in a client / server model were
augmented with Web browser
and servers. The industry
focused on rich OS and local
services provided by products
like SQL Server.
Introduction to .NET
2nd Generation
Rich
Client Logic
Browsers
Biz
Tier Logic
OS
Services
Servers
Data, Hosts
Stateful
Stateless &
Geo-Scalable
Separation of data and
business logic provide
greater scalability and
performance while
accessing enterprise
and legacy data.
Introduction to .NET
Web Services: The Next Generation
Other
Services
Smarter
Clients
Standard
Browsers
Smarter
Devices
Richer, More
Productive User
Experience
Applications Become
Programmable Web Services
Biz Biz
Logic &
Web
Service
Tier Logic
OS
OS
Services
Open Internet
Communications Protocols
(HTTP, SMTP, XML, SOAP)
Public Web
Services
Building Block
Services
Internal
Services
Servers
Data, Hosts
Applications Leverage
Globally-Available
Federated Web Services
Introduction to .NET
The .Net Platform
Visual
Studio .NET
Your Application
and Web Service
Applications
Using Your
Service
.NET
Framework
Operations
Orchestration
Windows
CE, 2000, XP, .NET
End-User
Clients
Internet Protocols
SOAP blue book
HTTP, SMTP, XML
Your Internal
Services
.NET Enterprise
Servers
.NET Foundation
Services
3rd Party Web Services
Introduction to .NET
The .NET Framework and Visual Studio .NET
Visual Basic C++ C# JScript
Windows
Forms
Introduction to .NET
ASP.NET
Visual Basic C++ C# JScript
Windows
Forms
Visual Studio.NET
Agenda
Introduction to .NET
ASP today
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Classic ASP
Successes
ADO
File system object
Classic ASP
Challenges
Code readability
Coding overhead
PostBack complexity
Reuse
Performance
DLL locking
Deployment
Sessions
Caching
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
ASP.NET
Architecture
ASPX
.ASPX
ASP.NET
Architecture
Compiled
.ASPX
ASP.NET
Architecture
Compiled
.ASPX
ASP.NET
Architecture
Compiled
.ASPX
ASP.NET
Execution Model
Source
code
Managed
code
Visual Basic
C#
C++
Compiler
Compiler
Compiler
Assembly
IL Code
Assembly
IL Code
Assembly
IL Code
Unmanaged
Component
ASP.NET
Features
ASP.NET
Features
ASP.NET
Features
No DLL locking
No DLL registration
Simplified configuration
Pagelets
Demonstration 1
ASP vs. ASP.NET
Data-Driven ASP
Data-Driven ASP.NET
Comparison
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Server Controls
Simplify Common Tasks
Forms
Tables
Data display
Calendar
Ad rotator
Server Controls
HTML and Server Controls
<div id="MyDiv" runat="server"/>
<asp:TextBox id="txtUserName"
runat="Server"/>
<asp:button type="submit"
OnClick="SubmitBtn_Click"
runat="server"/>
ID
uniquely identifies control
Runat enables server-side processing
OnClick identifies server-side event handler
Server Controls
Forms
<script language="C#" runat=server>
void SubmitBtn_Click(Object sender, EventArgs e) {
Response.Write (Hello + txtUserName.Text);
}
</script>
PostBack
Server Controls
Browser Support
Style
Font
Validation
Client-side
Server-side
Demonstration 2
Server Controls Walk-Through
Programming Model
Syntax
Server Controls
Validation
Without code
Required field
Within range
Two fields equal (password)
Regular expressions
Validation error messages
Custom validation
Demonstration 3
Validation
Required Field
Validation Summary
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Data Controls
Collections
ADO.NET
Array
HashTable
DataReader
DataSet
XML
Data Controls
ADO.NET
Connection
Command
DataReader
DataSet
DataAdapter
DataView
Data Controls
ADO.NET
DataSet
Database
Authors
Connection
DataAdapter
Select from Authors
Authors
Data Controls
ADO.NET
DataSet
Database
Authors
Connection
Publishers
DataAdapter
Select from
Publishers
Publishers
Data Controls
ADO.NET
DataSet
DataGrid
Authors
Repeater
Publishers
DataList
DataView
Data Controls
DataGrid
Alternate item
Header
Footer
Colors, font, borders, etc.
Paging
Updateable
Item as row
Data Controls
Repeater
List format
No default output
More control
More complexity
Item as row
Not updateable
Data Controls
DataList
Directional rendering
Good for columns
Item as cell
Alternate item
Updateable
Demonstration 4
Data Controls
ADO.NET
DataGrid
Repeater
DataList
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Global ASAX
Application_Start
Application_End
Session_Start
Session_End
Session
Application
Security
Session
Localization
Tracing
Debugging
<sessionState
mode=StateServer
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user
id=sa;password="
cookieless="false"
timeout="20"
/>
Demonstration 5
Cookieless Sessions
Sessions with cookies
web.config
Sessions without cookies
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Business Objects
Business Objects
Problems with ASP and DLLs
DLL Locking
MTS/COM+
Page hit
Shutdown Web application
Shutdown Internet Information Server
Edit in Visual Interdev
Shutdown package
Binary compatibility
Registry
Business Objects
DLLs with .NET
Not registered
Not locked
Shadow copy
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Web Services
Web Services
The Web Today
Purchase courseware
Purchased
Web Services
The Web Today
Purchase Courseware
Web Services
What Are Web Services?
Web Services
Class Courseware
WebMethod
GetPrice
Purchase
.ASMX
Web Services
Testing
Courseware.asmx
Test HTML Page
.ASMX
Web Services
WSDL
Courseware.asmx?WSDL
Service Definition(XML)
Proxy
DLL
.ASMX
Web Services
Register for Course Purchase Courseware
Proxy
DLL
.ASMX
Demonstration 6
Web Services
Web Service Source
Testing
WSDL
Client Proxy Creation
Consuming a Web Service
Agenda
Introduction to .NET
Classic ASP
ASP.NET
Server controls
Data controls
ASP.NET Web applications
Business objects
Web services
Additional topics
Additional Topics
Deployment
Scalability
Caching
Authentication and authorization
Availability
Additional Topics
Deployment
Copy
Components in .\bin
No registering DLLs
No locked DLLs
Each app can have its own version
Uninstall
Delete
Additional Topics
Scalability Improvements
Additional Topics
Caching
Additional Topics
Authentication
Demonstration 7
Page Caching
Compare Performance
Call To Action
Session Summary
msdn.microsoft.com
msdn.microsoft.com/net
C# Language Reference
msdn.microsoft.com/library/prelim/csref/vc
oricreference.htm
http://www.gotdotnet.com
MSDN
Essential Resources for Developers
Subscription
Services
Online
Information
Training &
Events
Print
Publications
MSDN Magazine
MSDN News
Membership
Programs
How-To Resources
Simple, Step-By-Step Procedures
http://msdn.microsoft.com/howto
MSDN Webcasts
Interactive, Live Online Events
http://www.microsoft.com/usa/webcasts
MSDN Subscriptions
The way to get Visual Studio .NET
Visual Studio .NET
MSDN Subscriptions
MSDN Universal
$2799 new
$2299 renewal/upgrade
Enterprise Developer
Enterprise lifecycle tools
Team development support
Core .NET Enterprise
Servers
MSDN Enterprise
$2199 new
$1599 renewal/upgrade
Professional
Tools to build applications
and XML Web services for
Windows and the Web
MSDN Professional
$1199 new
$899 renewal/upgrade
NEW
Enterprise Architect
Software and data modeling
Enterprise templates
Architectural guidance
Microsoft
Press
www.microsoft.com/mspress
Become a Microsoft
Certified Solution Developer
What is MCSD?
Training
Training Resources for Developers
Introduction to ASP.NET
Course
no. 2063
Detailed syllabus:
www.microsoft.com/traincert
To locate a training provider for this course, please access
www.microsoft.com/traincert
Microsoft Certified Technical Education Centers
are Microsofts premier partners for training services