|
|
|
ASP.NET Using Visual C# 2005
Course AD106: Five days; Instructor-Led
Introduction
In this course, youll learn how to use Visual Studio 2005 and Visual C# 2005 to build ASP.NET 2.0 Web pages and XML Web services. Youll gain an understanding of the new architecture behind ASP.NET 2.0 and how to use the new server controls. Youll learn to create consistent web sites using Master Pages, to improve performance with output caching, add membership features, configure and deploy ASP.NET applications, to authenticate users and limit their access to resources, direct users using new Site Navigation tools and to handle multi-user data access conflicts. You will also become familiar with the debugging and tracing features in Visual Studio 2005 that help you quickly troubleshoot issues and you will learn how to take advantage of creating your own user-defined controls.
Audience
This course is intended for:
Developers who intend on building Web applications using Visual Studio 2005 and ASP.NET 2.0.
Objectives
After completing this workshop, students will be able to:
Use ASP.NET server controls to generate HTML and to execute event procedures
Promote consistency within your web site through Master Pages
Retrieve and manipulate data using ADO.NET
Display and edit data quickly and easily using new data binding features
Use Membership features to manage your Web users
Use new Site Navigation controls to direct users within your site
Redirect users on unhandled errors
Debug client-side script
Debug SQL Server stored procedures
Use the Trace object for page-level monitoring
Use Web Events to provide programmatic health monitoring
Create new user-defined controls
Create and consume XML Web Services
Take advantage of ASP.NETs versatile output caching to increase performance
Add scalability and reliability by setting up an out-of-process session state server
Create a Web Setup project in Visual Studio to build a deployment package that takes advantage of Windows Installer
Prerequisites
This course assumes that you are familiar with Microsoft Windows 2000 or higher, the Internet and building basic Web sites. Some prior experience with Visual Studio will be helpful.
Course Outline
Introduction to ASP.NET
· A Review of Classic ASP
· ASP.NET Web Applications
· Rendering HTML with Server Controls
· Data Binding in ASP.NET 2.0
What's New in ASP.NET 2.0
· New Features in ASP.NET 2.0
· Designer Features
· Deployment and Configuration Tools
· Increasing Productivity
Working with Controls
· Introduction to Web Controls
· Simple Input Controls
· HyperLink and Button Controls
· List Controls
· Controlling Focus
Using Rich Server Controls
· Introduction to Rich Controls
· The Calendar Control
· The AdRotator Control
· The XML Control
Accessing Data
· Overview of ADO.NET
· Connecting to Data
· Executing Commands
· Working with Data
· Choosing an ADO.NET Provider
Configuration
· Configuration Overview
· Using the Web Site Administration Tool
· Programming Configuration Files
· Encrypting Configuration Sections
Data Binding
· Introducing Data Source Controls
· Reading and Write Data Using the SqlDataSource Control
· Displaying and Editing Middle-Tier Data using the ObjectDataSource Control
· Displaying XML Data Using the XmlDataSource Control
Validating User Input
· Overview of ASP.NET Validation Controls
· Using the Simple Validators
· Using the Complex Validators
· Summarizing Results with the ValidationSummary Control
· Separating Validation into Validation Groups
Themes and Master Pages
· Creating a Consistent Web Site
· ASP.NET 2.0 Themes
· Master Pages
Site Navigation
· Providers and Data Sources
· Creating an XML Site Map File
· Site Navigation Controls
· Using the Site Navigation API
· URL Mapping
· Security Trimming
Displaying Data with the GridView Control
· Introducing the GridView Control
· Filter Data in the GridView Control
· Allow Users to Select from a DropDownList in the Grid
· Add a Hyperlink to the Grid
· Deleting a Row and Handling Errors
Managing State
· Preserving State in Web Applications
· Page-Level State
· Using Cookies to Preserve State
· ASP.NET Session State
· Storing Objects in Session State
· Configuring Session State
· Setting Up an Out-of-Process State Server
· Storing Session State in SQL Server
· Using Cookieless Session IDs
· Application State
Managing Users with ASP.NET's Membership Features
· Introduction to Membership and Roles
· Using Membership Controls
· Writing Code to Interact with Membership and Roles
Debugging ASP.NET Applications
· Using the Visual Studio Debugging Features
· Handling Errors and Redirecting Users
· Debugging Client-Side Script
· Debugging SQL Server Code
Tracing
· Using Page-Level Tracing
· Using Application-Level Tracing
· Using Web Events
· Viewing Information With the Web Development Helper
Creating New Controls
· Two Kinds of User-Defined Controls
· Creating a User Control
· A More Complex User Control
· Creating a Custom Control
· Investigating the StateDropDownList Control
Improving Performance with Output Caching
· The Importance of Caching
· Declarative Page Output Caching
· Caching Page Fragments
· Post-Cache Substitution
· Caching Configuration
Advanced Caching
· A Review of Basic ASP.NET Caching
· Using Code to Implement Caching
· Caching Data Rather Than Output
· Using Database Dependencies for Cache Expiration
· DataSource Control Caching
Using the DataList and Repeater Controls
· Overview of List-Bound Controls
· Creating a Repeater Control
· Creating a DataList Control
Creating and Consuming Web Services
· The Motivation for XML Web Services
· Creating an XML Web Service with Visual Studio
· Designing XML Web Services
· Creating Web Service Consumers
· Discovering Web Services Using UDDI