You are on page 1of 21

Presenters Manual for ASP.

NET and WebForms

[Hybrid Model]

Effective Date: April 2002 Version: 1.0

Amendment Record

Version No.
1.0

Effective Date
April 2002

Change
New

Replaced Pages
-

Table Of Contents
Sr.
No. 1. 2. 3. 4. 5. 6. Introduction Information on Session Allocation Week-wise Session Schedule Session Coverage with Corresponding NETg/Online Mapping + Assignment and Discussion Bibliography
Solutions

Details

Page N o.
1 1 1 3 17 18

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

1. Introduction ASP.NET is the next version of ASP. It is a programming framework that provides necessary services to developers building enterprise-class web applications. In this module you will be learning how to create ASP.NET pages using C#. Ultimately you will learn how to create a secure Web application by making it viewable only to authorized users. At the end of this module, the student will be able to: Identify and apply ASP.NET objects and ASP.NET controls Explore and apply the various Validation controls Update a database through a form Create Web Services using ASP.NET Describe COM component and packages Create custom controls in ASP.NET Configure an ASP.NET Application Trace and debug an ASP.NET application Deploy caching into an application

2. Information on Session Allocation Module ASP.NET Concept (No. of Hrs) 28 Lab (No. of Hrs) 28 Total (No. of Hrs) 56

Note: This module is designed for the hybrid model. The details of the Hybrid Model delivery methodology is explained in Master Presenter Manual . Apart from the concept and lab hours indicated above, the student is required to book additional 4 hours a week to participate in community activities.

Issued On: April 2002 Version: 1.0

Page No. 1 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

3. Week-wise Session Schedule Week 1 2 3 4 5 6 7 A Session has duration of 2 hrs. Theory session is to be conducted in the classroom. Lab is a hands-on session to be conducted in the computer lab. Class Session Session 1 ASP.NET Theory 1 Session 5 ASP.NET Theory 3 Session 9 ASP.NET Theory 5 Session 13 ASP.NET Theory 7 Session 17 ASP.NET Theory 9 Session 21 ASP.NET Theory 11 Session 25 ASP.NET Theory 13 Lab Session Session 2 ASP.NET Lab 1 Session 6 ASP.NET Lab 3 Session 10 ASP.NET Lab 5 Session 14 ASP.NET Lab 7 Session 18 ASP.NET Lab 9 Session 22 ASP.NET Lab 11 Session 26 ASP.NET Lab 13 Class Session Session 3 ASP.NET Theory 2 Session 7 ASP.NET Theory 4 Session 11 ASP.NET Theory 6 Session 15 ASP.NET Theory 8 Session 19 ASP.NET Theory 10 Session 23 ASP.NET Theory 12 Session 27 ASP.NET Theory 14 Lab Session Session 4 ASP.NET Lab 2 Session 8 ASP.NET Lab 4 Session 12 ASP.NET Lab 6 Session 16 ASP.NET Lab 8 Session 20 ASP.NET Lab 10 Session 24 ASP.NET Lab 12 Session 28 ASP.NET Lab 14

Issued On: April 2002 Version: 1.0

Page No. 2 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

4. Session Coverage and Corresponding NETg/Online Mapping + Assignment & Discussion (Your Comments) Note: Some NETg topics indicated in bold and with *, have been recommended for compulsory reading. In case time permits or in case the student can book further additional hours, he can read the other topics as well. In addition, if a faculty feels the class needs to focus on a particular topic, he can suggest that as an essential reading for his class.

Session No. Session-1

Session Details ASP.NET Theory 1 All the topics from Chapter 1 of this book should be covered in this session. Objectives: Describe Web applications Describe the Web application development cycle Discuss Active Server Pages Enumerate the features of ASP.NET

XP Details (slide nos.) ASP.NET-Chapter 1 (1-22)

NETg/Online Mapping + Assignment & Discussion NETg CD No: 73227 Course Name: Introduction to ASP.NET Part 1. *ASP.NET Introduction: ASP.NET Overview

Session-2

ASP.NET Lab 1 The questions under Try It Yourself from Chapter 1 to be solved in this session.

Not Applicable

NETg CD No: 73227 Course Name: Introduction to ASP.NET Part 1. *ASP.NET Introduction: Web Forms Online Course: Know about webforms Explain the use of Webforms Explore the IDE of Webforms

Session-3

ASP.NET Theory 2 All the topics from Chapter 2 of this book should be covered in this session. Objectives: Explain the basics of ASP.NET

ASP.NET- Chapter 2 (1-18)

NETg CD No: 73227 Course Name: Introduction to ASP.NET Part 1. *ASP.NET Introduction: ASP.Net Page Code, Page Events

Issued On: April 2002 Version: 1.0

Page No. 3 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Discuss the process flow of a .ASPX page Explain the Page_Load event Discuss the IsPostBack property of the Page object Use the Request and Response objects Session-4 ASP.NET Lab 2 The questions under Try It Yourself from Chapter 2 to be solved in this session. Session-5 ASP.NET Theory 3 All the topics from Chapter 3 of this book should be covered in this session. Objectives: Explain Web controls Explain why controls are objects Use controls for Text Entry Use controls for Control Transfer Use controls for Selection Discuss Rich Controls Session-6 ASP.NET Lab 3 The questions under Try It Yourself from Chapter 3 to be solved in this session. Session-7 ASP.NET Theory 4 All the topics from Chapter 4 of this book should be covered in this session. Objectives: Explore the various Validation controls Explain Code Behind Implement Code behind Session-8 ASP.NET Lab 4 Not Applicable
Page No. 4 of 20

Not Applicable

Discussion 1

ASP.NET- Chapter 3 (1-16)

NETg CD No: 73227 Course Name: Introduction to ASP.NET Part 1. *ASP.NET Introduction : Web Controls

Not Applicable

ASP.NET- Chapter 4 (1-15)

NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *Partitioning code from content: Code-behind pages

Issued On: April 2002 Version: 1.0

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

The questions under Try It Yourself from Chapter 4 to be solved in this session. Session-9 ASP.NET Theory 5 All the topics from Chapter 5 of this book should be covered in this session. Objectives: Discuss the Global.asax file Explain the events in the Global.asax file Use the Application Object Use the Server Object Session-10 ASP.NET Lab 5 The questions under Try It Yourself from Chapter 5 to be solved in this session. Session-11 ASP.NET Theory 6 All the topics from Chapter 6 of this book should be covered in this session. Objectives: Describe Cookies Read and write Cookies Explain the use of the Session Object Define the stateliness of a session Session-12 ASP.NET Lab 6 The questions under Try It Yourself from Chapter 6 to be solved in this session. Session-13 ASP.NET Theory 7 All the topics from Chapter 7 of this book should be covered in this session. Objectives: Explain database concepts
Issued On: April 2002 Version: 1.0

ASP.NET- Chapter 5 (1-19)

NETg CD No: 73229 Course Name: Introduction to ASP.NET Part 3. *Web Applications: State Maintenance

Not Applicable

ASP.NET- Chapter 6 (1-15)

NETg CD No: 73229 Course Name: Introduction to ASP.NET Part 3. *Web Applications: ASP.NET new features

Not Applicable

ASP.NET- Chapter 7 (1-41)

NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *ADO.NET: ADO.NET Overview

Page No. 5 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Describe the various data access methodologies ODBC OLE DB ADO Explain a few database objects Session-14 ASP.NET Lab 7 The questions under Try It Yourself from Chapter 7 to be solved in this session. Session-15 ASP.NET Theory 8 All the topics from Chapter 8 of this book should be covered in this session. Objectives: Understand Datasets Explain the .NET data providers Use both the .NET data providers Create a Datagrid Understand Datareader Compare ADO and ADO.NET Session-16 ASP.NET Lab 8 The questions under Try It Yourself from Chapter 8 to be solved in this session. Session-17 ASP.NET Theory 9 All the topics from Chapter 9 of this book should be covered in this session. Objectives: Understand Data Binding Implement the repeater control Implement the DataList control Update a database ASP.NET- Chapter 9 (1-24) Not Applicable NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *ADO.NET: Accessing data with Data Readers NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *ADO.NET: Binding to XML data ASP.NET- Chapter 8 (1-21) Not Applicable NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *ADO.NET: Stored Procedures NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *ADO.NET: Datasets

Issued On: April 2002 Version: 1.0

Page No. 6 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

through a form Work with XML data Session-18 ASP.NET Lab 9 The questions under Try It Yourself from Chapter 9 to be solved in this session. Session-19 ASP.NET Theory 11 All the topics from Chapter 11 of this book should be covered in this session. Objectives: Explain the problems faced by traditional software development Identify the solutions that COM provides in todays software development Describe COM component and packages Describe interfaces Session-20 ASP.NET Lab 10 The questions under Try It Yourself from Chapter 11 to be solved in this session. Session-21 ASP.NET Theory 12 All the topics from Chapter 12 of this book should be covered in this session. Objectives: Explain Web Services Create Web Services using ASP.NET Consume Web Services using various protocols Create proxies for Web Services Understand the role of Universal Description, Discovery and Integration
Issued On: April 2002 Version: 1.0 Page No. 7 of 20

Not Applicable

Online Course: Know about webforms Create a web application using Webforms

ASP.NET- Chapter 11 (1-19)

NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *Partitioning code from content: Components

Not Applicable

ASP.NET- Chapter 12 (1-20)

NETg CD No: 73229 Course Name: Introduction to ASP.NET Part 3. *Web Services: Web services overview

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Session-22

ASP.NET Lab 11 The questions under Try It Yourself from Chapter 12 to be solved in this session.

Not Applicable

NETg CD No: 73229 Course Name: Introduction to ASP.NET Part 3. *Web Services: Calling Web services *Web Services: Working with Web services

Session-23

ASP.NET Theory 13 All the topics from Chapter 13 of this book should be covered in this session. Objectives: Identify the need for creating custom controls Create simple controls using ASP.NET Create composite controls using C# Explore events in custom controls ASP.NET Lab 12 The questions under Try It Yourself from Chapter 13 to be solved in this session. ASP.NET Theory 14 All the topics from Chapter 14 of this book should be covered in this session. Objectives: Discuss Machine.Config file Discuss Web.Config file Discuss the structure of a configuration file Secure your Web pages using authentication

ASP.NET- Chapter 13 (1-10)

NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. Partitioning code from content: User controls

Session-24

Not Applicable

Assignment

Session-25

ASP.NET- Chapter 14 (1-18)

NETg CD No: 73229 Course Name: Introduction to ASP.NET Part 3. *Web Applications: Authentication

Session-26

ASP.NET Lab 13 The questions under Try It Yourself from Chapter 14 to be solved in this session. ASP.NET Theory 15

Not Applicable

Session-27

ASP.NET- Chapter

NETg CD No: 73228


Page No. 8 of 20

Issued On: April 2002 Version: 1.0

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

All the topics from Chapter 15 of this book should be covered in this session. Objectives: Trace an ASP.NET application Debug an ASP.NET application Explain Data and Output caching Deploy Caching into an application Session-28 ASP.NET Lab 14 The questions under Try It Yourself from Chapter 15 to be solved in this session.

15 (1-17)

Course Name: Introduction to ASP.NET Part 2. *Tracing: Page-level trace Discussion 2

Not Applicable

NETg CD No: 73228 Course Name: Introduction to ASP.NET Part 2. *Tracing: Application-level trace

Assignments and Discussions The assignment and discussion (put up in Your Comment section of the community) to be undertaken in this module are listed below: Assignment: Philips India Ltd, a multinational company offers a number of electronic goods for home appliances. They would like you to design a Employee Information Management System for them. The Employee Information Management System should provide provisions for adding, modifying and deleting records for employee and employee information. Other requirement would allow the administrator to login from any terminal to add and update the Employee Details. Note: Run the EmpDetDb.sql script provided with the solution to create the Employee Details Database with the Login_Table and Employee_Table tables. 1. Create a Login form for administrator as given in Figure 1, which will allow entering Username and Password. After authentication, the administrator is redirected to the Employee.aspx page. Add a invisible Label to the page so that when any user enters a wrong User Id or Password Invalid User message is displayed to the user as given in Figure 2.

Issued On: April 2002 Version: 1.0

Page No. 9 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 1

Issued On: April 2002 Version: 1.0

Page No. 10 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 2 2. Create a main form as Employee.aspx as given in Figure 3, which will allow you to Add/Modify(Update)/Delete records in the Employee_Table Table.

Issued On: April 2002 Version: 1.0

Page No. 11 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 3 3. Create a form that will help the administrator to add the details of a new employee as shown in Figure 4. Save the form as "Add_New_Emp.asp".

Issued On: April 2002 Version: 1.0

Page No. 12 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 4 After entering the required data when the user clicks on the 'Submit' button, the new record should be added to the Employee_Table Table and the control must be redirected to the Employee.aspx page. 4. Create a form that will help the administrator to update records or modify the contents of the employee information using the Modify Employee Details Option in the Employee.aspx page. The form must be as shown in Figure 5, save the form as "Mod_Emp.aspx". After the User selects the Employee record he wants to change by selecting the Employee Code from the DropDownList box, display the other employee details of that employee as given in Figure 6.

Issued On: April 2002 Version: 1.0

Page No. 13 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 5

Issued On: April 2002 Version: 1.0

Page No. 14 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 6 Then the user is allowed to change the details and record is saved when the user clicks the "Submit" button. After updating the changes to the table the control must be redirected to the Employee.aspx page. 5. Create a form that will help the administrator to delete the employee records using the Delete Employee Option in the Employee.aspx page. The form must be as shown in Figure 7, save the form as "Emp_Del.aspx". After the User selects the Employee record he wants to delete by selecting the Employee Code from the DropDownList box, display the other employee details of that employee as given in Figure 8.

Issued On: April 2002 Version: 1.0

Page No. 15 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 7

Issued On: April 2002 Version: 1.0

Page No. 16 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Figure 8 When the user clicks the "Delete" button, the record must be deleted and the control must be redirected to the Employee.aspx page. Note: Solutions to Assignment is given separately as Lab deliverable. Discussion 1 (Your Comment) Discuss the difference between a Web application and a traditional client / server application Discussion 2 (Your Comment) Discuss Caching and the types of caching 5. Bibliography

ASP.NET Unleashed, Stephen Walther, Sams Publication Professional ASP.NET, Richard Anderson, Brian Francis, Alex Homer,Robert Howard, David Sussman, Karli Watson, WROX Publication. SAMS Teach Yourself ASP.NET in 21 days, Chris Payne, SAMS publication.

Issued On: April 2002 Version: 1.0

Page No. 17 of 20

Presenters Manual ACCP 2003 Year II ASP.NET and WebForms Hybrid Model

Issued On: April 2002 Version: 1.0

Page No. 18 of 20

You might also like