Skip to main content

Instructor-led training

ASP .NET Using C# Training in Corpus Christi, Texas

This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.0 and C#.

What you'll learn

This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.0 and C#. It includes an introduction to ASP.NET MVC, a new Web programming framework that incorporates use of the Model-View-Controller (MVC) pattern. It also includes coverage of using ASP.NET AJAX to build rich client applications. The fundamentals of Web applications are reviewed, and a testbed is established for ASP.NET and Internet Information Services. The architecture of ASP.NET is outlined, including the role of compilation, the Page class and code-behind. Web Forms are introduced, including server controls, view state, life cycle, and the event model. Request/response HTTP programming using ASP.NET is covered as are ASP.NET Web applications, caching in ASP.NET, and the fundamentals of configuration and security. Data access is covered in some detail in two chapters, including an introduction to ADO.NET, Language Integrated Query (LINQ), and the powerful data access controls provided by ASP.NET 4.0. The final section of the course introduces rich client-side development with ASP.NET AJAX and use of the ASP.NET MVC framework.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Corpus Christi, Texas or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

A working knowledge of C#. Previous experience with ASP is desirable, but not essential. Previous exposure to ADO.NET would be helpful.

Course Outline

 Introduction to ASP.NET
Web Application Fundamentals
Creating a Virtual Directory
Benefits of ASP.NET
An Echo Program
ASP.NET Features
Compiled Code
Server Controls
Browser Independence
Separation of Code and Content
State Management

 Web Forms Architecture
Web Forms Architecture
HelloCodebehind.aspx
HelloCodebehind.aspx.cs
Page Class
Code-Behind Page Life Cycle
Web Forms Page Life Cycle
View State
Enabling View State for Controls
Web Forms Event Model
Page Processing
Page Events
Page Properties
Page Directive
Tracing

 ASP.NET and HTTP
Classical Web Programming
Active Server Pages Object Model
Request and Response Objects
Request/Response in ASP.NET
HttpRequest Class
Properties of HttpRequest
Using HttpRequest Class
HTTP Collections
HttpResponse Class
Redirect
HttpUtility
Echo.aspx
EchoBack.aspx
GET and POST Compared
QueryString and Forms Collections

 Web Applications Using Visual Studio
Using Visual Studio
Visual Web Developer
Starter Web Site
ASP.NET Empty Web Site
Adding a Web Form
Using Components in ASP.NET
Compilation Error
Shadow Copying
Temporary Copy of the Component
ASP.NET Applications
Global.asax
Web Application Life Cycle
Code in Global.asax
Log Class
Adding Global.asax File
ListBox
Data Binding
Items Collection
XHTML
XHTML in Visual Studio
Absolute Positioning

 State Management and Web Applications
Session and Application State
Session Object
Page_Load
Session Variable Issues
Session State and Cookies
Session State Timeout
Session State Store
Application State
Implementing Application State
Global.asax
Users.aspx.cs
Multithreading Issues
Bouncing the Web Server
Cookies
Cookies and ASP.NET
HttpCookie Properties
Acme Travel Agency Case Study
State Management Techniques

 Server Controls
Server Controls in ASP.NET
HTML Server Controls
Using HTML Server Controls
HTML vs. Web Forms Server Control
Code for Login
HTML Controls in Visual Studio
Using HTML Controls
Web Controls
Validation Controls
Required Field Validation
Regular Expression Validation
Rich Controls
Copying a Web Site
User Controls
Using a User Control
Copyright.ascx
Copyright.ascx.cs

 Caching in ASP.NET
What Is Caching?
Need for Caching (Why Cache?)
Data to be Cached -Time Frame
ASP vs. ASP.NET Response Model
Caching in ASP.NET
Three Types of Caching in ASP.NET
Output Caching
@ OutputCache Directive
@ OutputCache - Attributes in Detail
VaryByParam in Detail
HttpCachePolicy Class
Page Fragment Caching
Common Mistakes in Using Fragment Caching
Data Caching or Application Caching
Add an Item to the Cache Object
Insert and Add Methods
Expiration
Problems in Caching

 ASP.NET Configuration and Security
One-minute Introduction to XML!
ASP.NET Configuration - Overview
Multi-level Configuration
Configuration Hierarchy
Web.Config File Structure
Web.Config Sections
Application Settings
ASP.NET Security ? Overview
Role-Based Security and CAS
Types and Steps
Steps in Enabling Role-Based Security
Three Ways to Authenticate
Forms Authentication ? Default.aspx
Forms Authentication ? Web.Config
Features of Forms Authentication
Forms Authentication Classes
Customizing Forms Authentication
Authentication Source
Forms Authentication  Analysis
Windows Authentication Analysis
Passport Authentication  Analysis
Authorization

 Debugging, Diagnostics and Error Handling
ASP.NET Diagnostics
Debugging Using Visual Studio
Debugging Calculator
Application-Level Tracing
Tracing Calculator
Using the Page Cache
Preparing to Debug
Trace Messages
Tracing the Calculator Page
Conditional Tracing
Trace Category
Trace Warning
Exceptions in Trace
Errors in ASP.NET
Uncaught Exception
Custom Error Pages

 More Server Controls
ASP.NET Control Improvements
Newer Controls in ASP.NET
Master Pages
Creating Content Pages
TreeView Control
Master Page Application
 
 ADO.NET and LINQ
ADO.NET
ADO.NET Architecture
.NET Data Providers
.NET Namespaces
Connected Data Access
AcmePub Database
Creating a Connection
Using Server Explorer
Performing Queries
ADO.NET with ASP.NET
Web Client Isolation
Web Client Database Code
Using Commands
Creating a Command Object
Using a Data Reader
Use of Session State
Generic Collections
Executing Commands
Parameterized Queries
DataSet
DataSet Architecture
Why DataSet?
DataSet Components
DataAdapter
Data Access Class
Retrieving the Data
Filling a DataSet
Accessing a DataSet
Using a Standalone DataTable
Adding a New Row
Searching and Updating a Row
Deleting a Row
Row Versions
Row State
Iterating Through DataRows
Command Builders
Updating a Database
Language Integrated Query (LINQ)
Bridging Objects and Data
Object Relational Designer
IntelliSense
Basic LINQ Query Operators
Obtaining a Data Source
Filtering
Ordering
Aggregation
Obtaining Lists and Arrays
Deferred Execution
Modifying a Data Source
Performing Inserts via LINQ to SQL
Performing Deletes via LINQ to SQL
Performing Updates via LINQ to SQL

 Data Access in ASP.NET 4.0
Data Access in ASP.NET
SQL Generation Options
Enable Edit and Delete
Editing Records
GridView Control
DetailsView Control
Storing the Connection String
Protecting the Configuration String
FormView Control
Master/Detail Web Pages
Data Binding
Template Editing
Using XML Data
Multiple-Tier Data Access
Object Data Source
Data Access in ASP.NET 4.0
Using the Entity Data Model
EntityDataSource Control
ListView Edit
DataPager Control
LinqDataSource Control
Configuring LinqDataSource
QueryExtender Control

 Personalization and Security
Themes
Control Skins
Applying Themes
Security in ASP.NET 4.0
ASP.NET Membership
Login Controls
Web Site Administration Tool
Access Rules
Profile Properties
Using ASP.NET Profile Properties

 ASP.NET AJAX
Desktop Applications
Web Applications
Plug-Ins
Client-Side Scripting
Script Code
JavaScript in ASP.NET
Dynamic Pages
Efficient Page Redraws
AJAX
Google Maps
ASP.NET AJAX
Partial Page Rendering
UpdatePanel Control
AJAX Extensions Controls
AJAX Client Library
Using the Client Library
ScriptManager Control
Client Library Namespaces
Sys.Debug Tracing
Document Object Model
JavaScript for Simple Calculator
Using the Client Library
AJAX Control Toolkit
ACT Controls in Visual Studio
AjaxControlToolkit.dll
Registering AjaxControlToolkit.dll
Extender Controls
NumericUpDownExtender Control

 ASP.NET MVC
Model-View-Controller (MVC)
What is ASP.NET MVC?
Advantages of ASP.NET MVC
Advantages of Web Forms
Visual Studio ASP.NET MVC Project
Starter Application
Simple App with Controller Only
Action Methods and Routing
Action Method Return Type
Rendering a View
Creating a View in Visual Studio
The View Web Page
Passing Data from Controller to View
Embedded Scripts
Using a Model
Controller Using the Model
View Using the Model
Strongly Typed View
Creating Views in Visual Studio
Using Forms
HTML Helper Functions
Handling Form Submission
Model Binding
Greet View
Input Validation
Checking Model Validity
Validation Summary

 Appendix A  Learning Resources

 Appendix B  HTTP Pipeline
Web Applications
Customizing the HTTP Pipeline
Customizing Applications
Customizing a Welcome Application
Logger Class
Custom Handlers
IHttpHandler Interface
.ashx Files
Custom Modules
 

Where ASP.NET Web Forms gets difficult

Developers who already write C# usually find the language the easy part. The difficulty is that HTTP is stateless while Web Forms presents an event-driven, stateful model. The syllabus teaches both sides and the machinery that connects them.

  • Life cycle and view state. The course covers the Page class, code-behind, the Web Forms page life cycle, page events and view state, including enabling it per control. Many bugs come from running code at the wrong point in the life cycle or assuming a control's value is already restored. A common misconception is that view state is a security feature. It is a state-persistence mechanism.
  • State and concurrency. Session state (timeout, store, cookies), application state, cookies and Global.asax are covered. The syllabus names multithreading issues in application state and what happens when the web server restarts. Shared state that works for one tester can fail under concurrent users.
  • Caching trade-offs. Output caching (VaryByParam, HttpCachePolicy), fragment caching and data caching are covered, along with common mistakes and problems. The hard part is deciding what may be served stale and for how long.
  • Data access layers. The course moves from connected ADO.NET (commands, data readers, parameterized queries) to DataSet and DataAdapter, then to LINQ to SQL, then to data-bound controls such as GridView, DetailsView, FormView, ObjectDataSource, EntityDataSource and LinqDataSource. LINQ's deferred execution surprises developers who expect a query to run where it is declared.
  • Two programming models. ASP.NET AJAX partial page rendering (UpdatePanel, ScriptManager, the client library) and ASP.NET MVC (controllers, routing, model binding, validation) are introduced late. The syllabus compares the advantages of MVC and Web Forms, so you can judge the trade-offs.

The topics build in sequence: HTTP and the page model first, then state, controls, caching, configuration and security, then data access, and finally AJAX and MVC. The appendix on the HTTP pipeline (handlers, modules, .ashx files) shows what sits beneath all of it.

The course targets ASP.NET 4.0 and C#. The .NET Framework 4.0, 4.5 and 4.5.1 are listed as out of support, so the course suits teams that build, maintain or migrate existing Web Forms applications on these versions.

Who it suits and what to take around it

The course is general level and runs five days. It suits C# developers who are new to ASP.NET, or who have inherited Web Forms code and want to understand it properly. Prior ASP and ADO.NET exposure helps, but the syllabus reviews HTTP fundamentals and introduces ADO.NET from the beginning. Training managers can use it to bring a team up to speed on an existing Web Forms code base.

  • Before: if C# itself is still shaky, C# Essentials covers the language groundwork this course assumes.
  • After, for AJAX: this course gives one chapter to UpdatePanel, the client library and the AJAX Control Toolkit. ASP.NET Ajax Using C# is the natural next step for teams that need more depth on client-side behavior.
  • After, for newer stacks: the MVC chapter here is an introduction. ASP.NET Core MVC, Rev. 8.0 continues the controller and view approach on the ASP.NET Core framework.

Organizations whose applications run on other framework versions can ask about a tailored private training proposal.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Slow catalog page. A team maintaining an internal Web Forms application might find a product list page hitting the database on every request. The caching chapter applies directly: an output cache varied by query-string parameter, fragment caching for a shared header, and data caching with expiration for reference data. The chapter's list of common caching mistakes helps the team check for stale or wrongly shared content.
  • Login and roles. A team adding sign-in to an existing site might combine forms authentication, authorization rules in Web.config, and the Membership and login controls from the personalization and security chapter. The Web Site Administration Tool and profile properties cover user setup and per-user settings.
  • Editable master/detail screens. A developer building a maintenance screen for records might use GridView with DetailsView or FormView, parameterized commands, and LinqDataSource or ObjectDataSource. This shows when declarative data controls are enough and when a separate data access class is the better design.

AI coding assistants with ASP.NET Web Forms

AI coding assistants can draft boilerplate quickly: ADO.NET command code, LINQ queries, validation markup, Web.config entries and simple controller actions. For these topics they fail in predictable ways.

  • Wrong framework. Training data leans toward ASP.NET Core. Suggestions may use dependency injection, middleware or APIs that do not exist in ASP.NET 4.0 and System.Web, and the compiler will only tell you after the code is pasted.
  • Life-cycle blindness. Generated code often binds data or sets control values without regard to page events or view state. It may work on first load and break on postback.
  • Unsafe or subtle data code. Assistants may build SQL by string concatenation instead of parameterized queries, leave connections unclosed, or ignore LINQ's deferred execution.
  • Shared state and caching. Suggestions rarely account for concurrent access to application state or for what VaryByParam actually varies.

To verify, build against the framework version the project targets and use the page and application-level tracing covered in the diagnostics chapter to check event order. Test with several simultaneous sessions, review every query for parameterization, and read generated configuration before deploying. Understanding the mechanisms above is what lets you judge a suggestion rather than accept it.

Frequently asked questions

What level is this course?

General level, five days. It assumes you can already write C# and teaches ASP.NET Web Forms, data access, caching, security, AJAX and an introduction to MVC from the ground up.

What do I need to know beforehand?

A working knowledge of C#. Experience with classic ASP is desirable but not essential, and prior exposure to ADO.NET is helpful. The syllabus reviews web application fundamentals and covers ADO.NET from its architecture onward.

Does it cover MVC and AJAX in depth?

Both are introduced in the final chapters. AJAX covers partial page rendering, UpdatePanel, ScriptManager, the client library and the AJAX Control Toolkit. MVC covers controllers, routing, views, strongly typed models, form handling, model binding and validation. The bulk of the course is Web Forms, state management, caching, security and data access.

Can the course be delivered privately, onsite or online?

Yes. Private training for organizations can be delivered at the client's location or live online.

Can the content be customized for our environment?

Private courses can be customized, including emphasis and the technology versions your organization uses, such as newer releases. You can request a proposal through the course's contact link.

Training locations

ASP .NET Using C# training across the U.S. and beyond.

We provide private ASP .NET Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all ASP .NET Using C# training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.