Overview:
This course will provide you with the knowledge and skills to develop Microsoft( ASP.NET 2.0 Web applications using Microsoft Visual Studio( 2005. It focuses on user interfaces, Web site structure and functionality, and implementation details.
Learning method:
This course will be presented in a lecture/tutorial sessions using a combination of lectures, group discussions and practical exercises. Each student will be provided with a comprehensive set of course notes.
This hands-on course combines exercises and practical work to solidify your learning.
What can you expect to gain from this course?
This course is intended for corporate/ISV application developers who have a desire to learn more about specific technology areas in Web application development.
Pre-requisites:
Before attending this course, you should:
- understand Microsoft .NET Framework 2.0 and the Common Language Runtime
- have a basic understanding of XML including XML declaration, elements, attributes, and namespaces
- have a basic understanding of client-side scripts
- have a basic understanding of HTML.
What can you expect to gain from this course?
After completing this course, you will be able to:
- create a Web application.
- program a Web application.
- add and configure server controls for a Web application.
- use master pages to establish a common layout for a Web application.
- manage state data for a Web application.
- access and display data in a Web application.
- control access to a Web application.
- deploy a Web application.
- create a mobile Web application.
Course content:
Module 1: Creating a Web Application
- This unit describes the different types of Web sites that you can create with Visual Studio 2005. It introduces the concept of event handling, and shows how to work with default event handlers for an object. It also explains how to control a Web application through the hierarchy of configuration files.
- Visual Studio Web Site Types
- Default Event Handling in Web Applications
- Web Configuration Files
- Lab 1: Creating a Web Application
- Exercise 1. Creating a New Web Application
- Exercise 2. Configuring and Building a Web Application
Module 2:Programming a Web Application
- This unit introduces the advanced event-handling capabilities of ASP.NET 2.0 and describes how to work with events in Visual Studio 2005. It shows how to work with non-default event handlers and centralized event handlers. It also addresses other common Web programming concepts, including:
- Detecting the type, version, and capability of the browser being used to view a Web site.
- Accessing information in an ASP.NET Web Page header.
- Using the HttpResponse.Write method to provide feedback to users.
- Handling page-level errors
- Event Handling in Web Applications
- Browser Capability Detection
- Page Header Retrieval
- Page-Level and Application-Level Error Handling
- Lab 2: Programming a Web Application
- Exercise 1. Implementing Non-Default Event Handlers
- Exercise 2. Detecting Browser Capabilities and Setting Page Header Properties
- Exercise 3. Handling Page-Level Exceptions
Module 3:Adding & Configuring Server Controls
- This unit explains how to use the HTML controls and Web server controls provided by Visual Studio 2005 and ASP.NET 2.0. It shows how to design and build Web-based user interfaces, and it teaches how to program Web server controls. This unit also describes how the ASP.NET 2.0 postback model works and how it can be used.
- HTML Controls and Web Server Controls
- Types of Web Server Controls
- Working with Web Server Controls
- The ASP.NET 2.0 Page Postback Model
- Lab 3: Adding & Configuring Server Controls
- Exercise 1. Building Graphical User Interfaces with HTML Controls
- Exercise 2. Building Graphical User Interfaces with Web Server Controls
- Exercise 3. Programming Web Server Controls and Working with Postbacks
Module 4:Creating a Common Layout by Using Master Pages
- This unit explains how to use master pages to define common layouts for Web pages. Master pages provide developers with a new set of features for ensuring consistent page layout. Students will work with master pages and nested master pages in the lab to build a Web application that has a consistent layout and functionality across Web pages.
- What Are Master Pages?
- What Are Content Pages?
- Nested Master Pages
- Lab 4: Creating a Common Layout by Using Master Pages
- Exercise 1. Designing a Master Page
- Exercise 2. Adding & Configuring Content Pages
- Exercise 3. Designing Nested Master Pages
Module 5:Managing State for a Web Application
- This unit describes the different state management technologies that students can use in ASP.NET 2.0 Web applications. It discusses how controls can retain state data over multiple requests, and then explains how developers can work with this state data. This unit then shows how to store state data in the Application and Session objects provided by ASP.NET 2.0. It also discusses the different session-data storage mechanisms. Finally, this unit explains how to use the Cache object to cache and retrieve state data. Lessons:
- ViewState Properties and ControlState Data
- Application and Session Objects
- Strategies for Managing Session State Data
- The Cache Object
- Lab 5: Managing State for a Web Application
- Exercise 1. Configuring ViewState Properties for Web Server Controls
- Exercise 2. Storing and Retrieving Application and Session State
- Exercise 3. Implementing Out-of-Process Session State
- Exercise 4. Storing and Managing State Data in the Cache Object
Module 6:Accessing and Displaying Data
- This unit describes how to add database connections to the Web.Config file and the benefits that this approach adds when building manageable Web applications. This unit then describes the new data controls for accessing data in a variety of formats. It includes details about using the SqlDataSource control, the XmlDataSource control, and the ObjectDataSource control. This unit also describes how user interface data controls are bound to the data source controls, and it includes a discussion about binding data-aware standard controls to data.
- Database Connections and the Web.Config File
- Relational Data and Data Source Controls
- XML Data and Data Source Controls
- Object Data and Data Source Controls
- Lab 6: Accessing and Displaying Data
- Exercise 1: Creating and Retrieving Database Connections
- Exercise 2: Accessing Data by Using SqlDataSource Controls and Data Controls
- Exercise 3: Accessing Objects as Data with ObjectDataSource Controls
- Exercise 4: Accessing XML Data by Using XmlDataSource Controls
Module 7:Controlling Access to a Web Application
- This unit describes authentication and authorization for Web applications. It also shows how to develop login, sign-up, and other membership pages for Web applications based on the ASP.NET 2.0 Membership system.
- Authentication for Web Applications
- Authorization for Web Applications
- Site Membership Systems Using the Membership Class
- Web Site Security Administration Using the Roles Class
- Lab 7: Controlling Access to a Web Application
- Exercise 1: Configuring Authentication and Authorization for a Web Application
- Exercise 2: Implementing a Membership Registration Page
- Exercise 3: Implementing a Login Page and Adding Login Controls
- Exercise 4: Creating a Membership Management Administrative User Interface
Module 8:Deploying a Web Application
- This unit describes three different ways to deploy Web applications:
- Using the Copy Web Site utility to deploy a Web application in a non-compiled state
- Using the Publish Web Site utility to deploy a precompiled version of the Web application
- Building Microsoft Windows( Installer packages to create a redistributable application with full setup logic
- The Copy Web Site Utility
- The Publish Web Site Utility
- Windows Installer Setup Packages
- Lab 8: Deploying a Web Application
- Exercise 1. Deploying a Web Application by Using the Copy Web Site Utility
- Exercise 2. Precompiling and Deploying a Web Application by Using the Publish Web Site Utility
- Exercise 3. Building a Windows Installer Package for Deploying a Web Application
Module 9:Making Web Applications Available to Mobile Devices
- This unit explains how to enable browsers running on mobile devices, such as Pocket PCs and mobile phones, to access pages within your application.
- Device Emulators for Mobile Web Forms
- Mobile Device Detection and Redirection
- Mobile Web Forms
- Device-Specific Features in Mobile Web Forms
- Lab 9: Making Web Applications Available to Mobile Devices
- Exercise 1. Managing Redirection for Mobile Devices
- Exercise 2. Designing and Implementing a Mobile Web Form
- Exercise 3. Designing Device-Specific Features for a Mobile Web Application
- Exercise 4. Browsing a Mobile Web Application with Specific Device Emulators