ASP.NET using Visual C#

ASP.NET using Visual C#


Developers wishing to learn how to use ASP.NET to create great web applications will benefit greatly from this course.

NOTE: This course is delivered at ASP.NET 2012/13.  Previous releases are available on request.


This course assumes that delegates are familiar with Windows, the Internet and building basic Web sites.

Some prior experience with Visual Studio will be helpful.

Previous experience of development with C#, or first attending our C# Programming class, would be useful.


5 days. Hands on.

Course Objectives

In this course, delegates will learn how to use Visual Studio and Visual C# to build ASP.NET Web pages and XML Web services. Attendees will gain an understanding of the architecture behind ASP.NET and how to use the server controls. They’ll 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. Delegates will also become familiar with the debugging and tracing features in Visual Studio that help to quickly troubleshoot issues and they'll learn how to take advantage of creating they're own user-defined controls.

At the end of this course, delegates will be able to:

  • Use ASP.NET server controls to generate HTML and to execute event procedures.
  • Promote consistency within 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 Web users.
  • Use new Site Navigation controls to direct users within a 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.NET’s 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.

Course Content

Introduction to ASP.NET
A Review of Classic ASP.
ASP.NET Web Applications.
Rendering HTML with Server Controls.
Data Binding in ASP.NET.

What's New in ASP.NET
New Features in ASP.NET.
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 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 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.

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.

Virtual Courses

ALL of our courses can be delivered virtually. And our Bath public schedule of courses are now available as live virtual sessions, using the popular Zoom Virtual Classroom and remote labs. Delegates can test their access at:

Public Courses

On-Site Courses

Can't attend one of our public classes? Booking for multiple people?

All our courses are available on your site! Delivered for your staff, at your premises.

Contact us to find out more...