This introductory/intermediate-level class provides the basics necessary to build and work with ASP.NET applications using Visual Studio.NET. The class introduces ASP.NET for Web development, and covers Visual Studio 2008, enabling students to get up and running quickly. The class drills down into detail on Web application architecture, leveraging User controls, and managing session and application state. Students also learn to work with ADO.NET, and the data bound controls in the framework. The class provides examples and exercises in both C# and VB.NET.
By the end of the class students will be able to:
- Understand ASP.NET and how this powerful technology facilitates creating robust Web applications using sound object-oriented techniques
- Create powerful user interfaces using Web forms
- Leverage controls provided by the framework, and learn how to extend and build custom controls
- Learn to work with the validation controls in ASP.NET
- Work with the intrinsic objects used in ASP.NET for managing HTTP requests and responses, and maintaining state
- Leverage ADO.NET to bind data to the controls in their forms
- Use the XML support in .NET to produce XML data, transform data for Web pages, and store XML data in a database
- Work with VS.NET to debug, deploy, secure, and fine-tune their applications
Prior programming experience in at least one object-oriented language such as a .NET language (e.g., C#, VB.NET), Java, C++, or SmallTalk, or significant programming experience in a modern language such as MS Visual Basic.
Introduction to .NET Programming
- What is the .NET Platform?
- What is the .NET Framework?
- The .NET Languages
- Example: Welcome to .NET Program
- Example: Welcome Using Alert
Creating a Simple Web Site
- Understanding Web Sites and Applications
- Compile Models for Web Sites in VS.NET 2005
- The ASP.NET Development Web Server
- Understanding Web Forms and Events
Refresher: Introduction to Visual Studio .NET
- What is Visual Studio .NET, and is it required to write .NET and ASP.NET applications?
- The Integrated Development Environment
- Working with Solutions and Projects
- Documentation And Help
- Debugging and Diagnostics
Setting Up Course Exercise Solutions
- Create a Blank Solution
- What is ASP.NET?
- What software do I need in order to run ASP.NET applications?
- The Page Class
- Structure of an ASP.NET Web Application
- Example: Outputting the Current Time
- Example: Processing Form Submissions in ASP.NET
Fundamentals of Web Forms and Controls
- The Architecture of a Page: Pages as Web Forms
- Adding Controls to Your Forms
Introduction to Server Controls
- What are Server Controls
- Page Control Hierarchy
- ASP Web Controls vs. HTML Controls
- Using the Visual Studio .NET Web Form Editor
- Example: Calculating Birthdays
Custom User Controls
- What are User Controls?
- The Architecture of a User Control: User Controls as Reusable Components
Events in ASP.NET
- What is an Event?
- Page events
- Web Server Control Events
- Example: Simple Loan Calculator
- Immediate versus Cached Event Submission
Refresher: ADO.NET Introduction
- What is ADO.NET?
- An Overview of Relational Database Concepts
- What is an RDBMS?
- The ADO.NET Object Model
- Getting the Data Out
- The IDataReader Interface
- Introducing the Database Used for the Course
- Example: Selecting Records Using a DataReader
Refresher: ADO.NET DataSets and the Disconnected Model
- What is a DataSet?
- Accessing Data Through a DataSetís Tables and Rows
- Example: Selecting Records from a Database using a DataSet
Introduction to Data Binding in Web Forms
- What is Data Binding?
- What is a Data Source?
- DataSource Code and DataSource Controls
- Data Binding in Code
- Data Binding with DataSource Controls
Data Drilldowns with Data Bound Controls
- What is a Data Drill Down Interface?
- Example: A sample Data Bound Data Drill Down
- Example: Details and More
Web Development Support
- The Request Object
- The Response Object
- The Server Object
- The Uri Class
- The SmtpClient and MailMessage Classes
ASP.NET Applications, The Application Object, and the HttpApplicationState Class
- What is an Application?
- Inspecting the Global.asax File
The Session Object and the HttpSessionState Class
- What is a Session?
- How Does ASP.NET Keep Track of Sessions?
- Example: A User Name as a Session Variable
Application Configuration With Web.config
- ASP.NET Configuration is XML
- ASP.NET Configuration is Applied in a Cascading Way
- Inspecting Configuration Files
- Example: Using Web.config to Create Custom Error Pages
Working with Validation Controls
- What are Validation Controls?
- Example: RequiredFieldValidator, CompareValidator, and RangeValidator
- The ValidationSummary Control
Regular Expression Validation
- Introducing Regular Expressions
- The RegularExpression Validator Control
- The CustomValidator Control
- What are Master Pages?
- Example: A Basic Master Page
- Example: Referencing Properties and Controls on the Master Page
- What is XML?
- XML Logical Structure
- XML Physical Structure
- XML Design Patterns
- Applications of XML (and related technologies)
Producing XML from Database Data via ADO.NET
- Example: Generate and View XML from a DataSet
Performing XSLT with ASP.NET
- XSLT in ASP.NET
- Overview of Deployment in .NET
- VS.NET Build Configurations
- Suggested Build Configuration Model
- Copying a Web Application
- Pre-compiling and Copying a Web Site
- Creating a Web Setup Project
Advanced: Deployment Settings Using Conditional Compilation With Compile-Time Constants
- Compile-Time Compilation Constants
- Example: Using Bulid Configuration Settings to Show and Hide Controls
Advanced: Introducing Components
- Why Are Components Useful?
- Using Assemblies to Package and Deploy Components