Documente Academic
Documente Profesional
Documente Cultură
NET
Agenda
Introduction to ASP.NET ASP.NET Features XML Web Services Additional Resources
What is ASP.NET?
ASP.NET provides a complete environment for building, deploying and running .NET Web Applications Ease of Development
Simplified page development model Target any Web client (PC or mobile device) Modular, well-factored, extensible architecture Superior debugging and tracing support
Windows Forms
Secure, easily deployable rich client classes
ASP.NET
XML
ASP.NET
Classes and engine for building, deploying, and running Web applications and services
ADO.NET
Enterprise Services
A complete set of features enabling transactions, message queuing, etc.
.NET Framework
Designed for loosely-coupled computing
Visual Studio .NET .NET Framework
Windows Application Services Communication Protocols XML, SOAP, HTTP, HTML
ASP.NET enables support for server controls Controls can handle rendering and interaction
single file separate files (code-behind)
code <tags>
Form1.aspx
<tags>
Form1.aspx
code
Form1.aspx.cs
ASP.NET enables support for server controls Controls can handle rendering and interaction
single file separate files (code-behind)
code <tags>
Form1.aspx
<tags>
Form1.aspx
code
Form1.aspx.cs
Runtime Compilation
Parse ASPX
Generate
Engine
Codebehind class
Request Request
ASPX File
Instantiate
Compile
Response Response
ASP.NET Controls
Html Controls
Map 1:1 with HTML tags Render client-targeted HTML and script Consistent, strongly-typed object model Some render as single HTML tags Some render richer HTML + script Server controls targeted at Cell Phones/PDAs Small devices with limited screen real estate HTML + WML/WAP mobile markup support Automatically handle device incompatibilities Extensive template customization support WYSIWYG support within Visual Studio.NET
Server Controls
Debugging ASP.NET
Tracing
ASP.NET supports page and app tracing Great way to collect request details
Error Handling
.NET provides unified error architecture ASP.NET also provides declarative application custom error handling Global application event raised if unhandled exception occurs Use new EventLog class to write custom events to log when errors occur Use new SmtpMail class to send email to administrators
HttpHandlers
Caching
HTTP Runtime
HttpModules
ASPNET_WP
Authent
Sessions
Session State
ASPNET_STATE
ASPNET_ISAPI
INETINFO
Session State
Session State can now be external from ASP.NET Worker Process
ASPState NT Service SQL Server 7.0
No tools, no configuration changes, no app shutdown, no re-boots Simple uninstall just delete directory
No registry entries to clean up
Improved Reliability
ASP.NET has been designed with assumption that failures will occur on systems
Designing for failure reduced fragility
Net Result: Admins should never think that an ASP.NET application is down or unavailable
Summary
ASP.NET provides a quantum leap in power
Tons of new features/infrastructure
Experience programming with .NET by building your own Terrarium creature at the Hands-On Lab (Booth #301)
All the features of Visual Studio .NET Professional plus Course Management Tools