Contents Introduction Course Materials...2 Prerequisites ...3 Course Outline...4 Setup...9 Microsoft Official Curriculum...10 Microsoft Certified Professional Program...12 Facilities ..
Trang 2domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, places or events is intended or should be inferred Complying with all applicable copyright laws is the responsibility of the user Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property
2002 Microsoft Corporation All rights reserved
Microsoft, MS-DOS, Windows, Windows NT, Active Directory, ActiveX, BizTalk, Hotmail, IntelliSense, JScript, MSN, MSDN, PowerPoint, Visio, Visual Basic, Visual C++, Visual C#, Visual J#, Visual Studio, Win32, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A and/or other countries
The names of actual companies and products mentioned herein may be the trademarks of their respective owners
Course Number: 2310B
Part Number: X08-90700
Released: 07/2002
Trang 3Contents
Introduction
Course Materials 2
Prerequisites 3
Course Outline 4
Setup 9
Microsoft Official Curriculum 10
Microsoft Certified Professional Program 12
Facilities 15
Module 1: Overview of the Microsoft NET Framework Overview 1
Lesson: Introduction to the NET Framework 2
Lesson: Overview of ASP.NET 12
Lesson: Overview of the Lab Application 17
Lesson: Resources 23
Review 25
Module 2: Using Microsoft Visual Studio NET Overview 1
Lesson: Overview of Visual Studio NET 2
Lesson: Creating an ASP.NET Web Application Project 22
Review 32
Lab 2: Using Microsoft Visual Studio NET 34
Module 3: Using Microsoft NET-Based Languages Overview 1
Lesson: Overview of the NET-Based Languages 2
Lesson: Comparison of the NET-Based Languages 12
Lesson: Creating a Component Using Visual Studio NET 19
Review 29
Lab 3: Building a Microsoft Visual Studio NET Component 31
Module 4: Creating a Microsoft ASP.NET Web Form Overview 1
Lesson: Creating Web Forms 2
Lesson: Using Server Controls 12
Review 30
Lab 4: Creating a Microsoft ASP.NET Web Form 32
Module 5: Adding Code to a Microsoft ASP.NET Web Form Overview 1
Lesson: Using Code-Behind Pages 2
Lesson: Adding Event Procedures to Web Server Controls 8
Lesson: Using Page Events 21
Review 36
Lab 5: Adding Functionality to a Web Application 39
Trang 4Module 6: Tracing in Microsoft ASP.NET Web Applications
Overview 1
Lesson: Understanding Tracing 2
Lesson: Remote Debugging 18
Review 21
Lab 6: Tracing in Microsoft ASP.NET Web Applications 23
Module 7: Validating User Input Overview 1
Lesson: Overview of User Input Validation 2
Lesson: Using Validation Controls 8
Lesson: Page Validation 28
Review 34
Lab 7: Validating User Input 36
Module 8: Creating User Controls Overview 1
Lesson: Adding User Controls to an ASP.NET Web Form 2
Lesson: Creating User Controls 12
Review 18
Lab 8: Creating User Controls 20
Module 9: Accessing Relational Data Using Microsoft Visual Studio NET Overview 1
Lesson: Overview of ADO.NET 2
Lesson: Creating a Connection to a Database 9
Lesson: Displaying a DataSet in a List-Bound Control 20
Review 29
Lab 9: Accessing Relational Data Using Microsoft Visual Studio NET 31
Module 10: Accessing Data with Microsoft ADO.NET Overview 1
Lesson: Introduction to Using ADO.NET 2
Lesson: Connecting to a Database 8
Lesson: Accessing Data with DataSets 16
Lesson: Using Multiple Tables 36
Lesson: Accessing Data with DataReaders 46
Review 58
Lab 10: Accessing Data with Microsoft ADO.NET 60
Module 11: Calling Stored Procedures with Microsoft ADO.NET Overview 1
Lesson: Overview of Stored Procedures 2
Lesson: Calling Stored Procedures 9
Review 22
Lab 11: Calling Stored Procedures with Microsoft ADO.NET 24
Trang 5Module 12: Reading and Writing XML Data
Overview 1
Lesson: Overview of XML Architecture in ASP.NET 2
Lesson: XML and the DataSet Object 10
Lesson: Working with XML Data 25
Lesson: Using the XML Web Server Control 35
Review 41
Lab 12: Reading XML Data 43
Module 13: Consuming and Creating XML Web Services Overview 1
Lesson: Overview of Using XML Web Services 2
Lesson: Calling an XML Web Service Using HTTP 13
Lesson: Using a Proxy to Call an XML Web Service 18
Lesson: Creating an XML Web Service 30
Review 40
Lab 13: Consuming and Creating XML Web Services 42
Module 14: Managing State Overview 1
Lesson: State Management 2
Lesson: Application and Session Variables 13
Lesson: Cookies and Cookieless Sessions 22
Review 31
Lab 14: Storing Application and Session Data 33
Module 15: Configuring, Optimizing, and Deploying a Microsoft ASP.NET Web Application Overview 1
Lesson: Using the Cache Object 2
Lesson: Using ASP.NET Output Caching 14
Lesson: Configuring an ASP.NET Web Application 23
Lesson: Deploying an ASP.NET Web Application 41
Review 48
Lab 15: Configuring, Optimizing, and Deploying a Microsoft ASP.NET Web Application 50
Course Evaluation 69
Module 16: Securing a Microsoft ASP.NET Web Application Overview 1
Lesson: Web Application Security Overview 2
Lesson: Working with Windows-Based Authentication 13
Lesson: Working with Forms-Based Authentication 23
Lesson: Overview of Microsoft Passport Authentication 34
Review 37
Lab 16: Securing a Microsoft ASP.NET Web Application 39
Trang 6Module 17: Review
Overview 1
Content Review 2
Lab 17: Review Game 4
Course Evaluation 6
Appendix A: Lab Recovery Appendix B: Debugging with Microsoft Visual Studio NET Appendix C: Using Templates with List-Bound Controls Appendix D: XML Web Service Responses
Trang 7About This Course
This section provides you with a brief description of the course, audience, suggested prerequisites, and course objectives
This course provides students with the knowledge and skills that are needed to develop Web applications by using Microsoft® Visual Studio® NET and Microsoft ASP.NET
This course is designed for two types of students: beginner Web developers and Microsoft Visual Basic® or C# developers who want to learn
Visual Studio NET and ASP.NET:
programming However, they should know the basic constructs of programming, such as loops and conditional statements Beginning Web developers need to have experience with Hypertext Markup Language (HTML) and some scripting language, such as Visual Basic
Scripting Edition or Microsoft JScript® This audience includes both HTML developers and dynamic HTML (DHTML) developers
Microsoft Windows® applications by using Visual Basic 6
This course requires that students meet the following prerequisites:
• Using conditional statements
The completion of either Course 2559, Introduction to Visual Basic NET
Programming with Microsoft NET, or Course 2373, Programming with Microsoft Visual Basic NET, satisfies the preceding prerequisite skills
requirements
After completing this course, the student will be able to:
Describe the Microsoft NET Framework and ASP.NET
Create an ASP.NET Web application project by using Visual Studio.NET
Create a component in Visual Basic NET or C#
Add server controls to an ASP.NET page
Add functionality to server controls that are located on an ASP.NET page
Use the tracing features of Visual Studio NET
Use validation controls to validate user input
Description
Audience
Student prerequisites
Course objectives
Trang 8 Create a user control
Access data by using the built-in data access tools that are in Visual Studio NET
Use Microsoft ADO.NET to access data in an ASP.NET Web application
Call a stored procedure from an ASP.NET Web application
Access Extensible Markup Language (XML) data and read it into a DataSet
Configure and deploy an ASP.NET Web application
Secure an ASP.NET Web application by using a variety of technologies
There are four appendices included with Course 2310B, Developing Microsoft
ASP.NET Web Applications Using Visual Studio NET:
Appendix A, “Lab Recovery”
This appendix provides the steps that are required to recover from an incomplete or broken lab solution
Appendix B, “Debugging with Microsoft Visual Studio NET”
This appendix is an optional lesson for Module 6, “Tracing in Microsoft ASP.NET Web Applications.” This Appendix is a lesson that includes three topic slides and one demonstration; it should take 30 minutes to deliver this appendix
Appendix C, “Using Templates with List-Bound Controls”
This appendix is an optional lesson for Module 9, “Accessing Relational Data Using Microsoft Visual Studio NET.” This appendix lesson includes two topic slides and one demonstration; it should take 15 minutes to deliver this appendix
Appendix D, “XML Web Service Responses”
This appendix is an optional lesson for Module 13, “Consuming and Creating XML Web Services.” This lesson includes three topic slides and one demonstration; it should take 20 minutes to deliver this appendix
Appendices
Trang 911:45 12:00 Lab 2: Using Microsoft Visual Studio NET
Trang 10Day 3
Start End Module
9:30 10:30 Module 9: Accessing Relational Data Using Microsoft
Visual Studio NET
Trang 11Day 5
Start End Module
9:30 10:30 Module 15: Configuring, Optimizing, and Deploying a Microsoft
ASP.NET Web Application
12:45 2:15 Lab 15: Configuring, Optimizing, and Deploying a Microsoft
ASP.NET Web Application
Trang 12Trainer Materials Compact Disc Contents
The Trainer Materials compact disc contains the following files and folders:
or when you double-click the Autorun.exe file, this file opens the compact
disc and allows you to browse the Student Materials or Trainer Materials compact disc
this file opens Autorun.exe
Trainer Materials compact disc and its contents and how to open the Trainer Materials Web page
the steps for manually installing the classroom computers
contains a description of classroom requirements, classroom configuration, instructions for using the automated classroom setup scripts, and the Classroom Setup Checklist
used in this course
can be used to display the PowerPoint slides if Microsoft PowerPoint 2002
is not available Do not use this version in the classroom
software to computers in a classroom setting
links to resources pertaining to this course, including additional reading, review and lab answers, lab files, multimedia presentations, and course-related Web sites
setup of the instructor computer
Web page To open the Web page, open Windows Explorer and, in the root
directory of the compact disc, double-click Default.htm or Autorun.exe
Trang 13Student Materials Compact Disc Contents
The Student Materials compact disc contains the following files and folders:
when you double-click the Autorun.exe file, this file opens the compact
disc and allows you to browse the Student Materials compact disc
this file opens Autorun.exe
students with resources pertaining to this course, including additional reading, review and lab answers, lab files, multimedia presentations, and course-related Web sites
Student Materials compact disc and its contents and how to open the Student Materials Web page
description of classroom requirements, classroom setup instructions, and the classroom configuration
plug-in
PowerPoint presentation and Web-based materials
files may be used to prepare the student computers for the hands-on labs
for this course
Windows Media™ Player
Web page To open the Web page, open Windows Explorer, and in the root
directory of the compact disc, double-click Default.htm or Autorun.exe
Word document (.doc) files that are included on the compact disc
Trang 14Document Conventions
The following conventions are used in course materials to distinguish elements
of the text
Convention Use bold Represents commands, command options, and syntax that
must be typed exactly as shown It also indicates commands on menus and buttons, dialog box titles and options, and icon and menu names
italic In syntax statements or descriptive text, indicates argument
names or placeholders for variable information Italic is also used for introducing new terms, for book titles, and for emphasis in the text
directory names, and folder and file names, except when specifically referring to case-sensitive names Unless otherwise indicated, you can use lowercase letters when you type a directory name or file name in a dialog box or
at a command prompt
ALL CAPITALS Indicate the names of keys, key sequences, and key
combinations — for example, ALT+SPACEBAR
monospace Represents code samples or examples of screen text
Trang 15Microsoft Certified Professional Program 12
Facilities 15
Introduction
Trang 16Information in this document, including URL and other Internet Web site references, is subject to change without notice Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, places, or events is intended or should be inferred Complying with all applicable copyright laws is the responsibility of the user Without limiting the rights under copyright, no part
of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted
in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property
2002 Microsoft Corporation All rights reserved
Microsoft, MS-DOS, Windows, Windows NT, Active Directory, ActiveX, BizTalk, Hotmail, IntelliSense, JScript, MSN, MSDN, PowerPoint, Visio, Visual Basic, Visual C++, Visual C#, Visual J#, Visual Studio, Win32, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A and/or other countries
The names of actual companies and products mentioned herein may be the trademarks of their respective owners
Trang 17Instructor Notes
The Introduction module provides students with an overview of the course
content, materials, and logistics for Course 2310B, Developing Microsoft
ASP.NET Web Applications Using Visual Studio NET
To teach this module, you need the following materials:
Microsoft® PowerPoint® file 2310B_00.ppt
To prepare for this module, you must:
Complete the Course Preparation Checklist that is included with the trainer course materials
Read all of the materials for this module
Presentation:
30 minutes
Required materials
Preparation tasks
Trang 18How to Teach This Module
This section contains information that will help you to teach this module Welcome students to the course and introduce yourself Provide a brief overview of your background to establish credibility
Ask students to introduce themselves and provide their background, product experience, and expectations of the course
Record student expectations on a whiteboard or flip chart that you can reference later in class
Tell students that everything they will need for this course is provided at their desk
Have students write their names on both sides of the name card
Explain the purpose of all the materials that will be used in this course
Describe the contents of the student workbook and the Student Materials compact disc
Tell students where they can send comments and feedback on this course Demonstrate how to open the Web page that is provided on the Student
Materials compact disc by double-clicking Autorun.exe or Default.htm in the
StudentCD folder on the Trainer Materials compact disc
Describe the prerequisites for this course This is an opportunity for you to identify students who may not have the appropriate background or experience
to attend this course
Briefly describe each module and what students will learn
Explain how this course will meet students’ expectations by relating the information covered in individual modules to their expectations
Describe any necessary setup information for the course, including course files and classroom configuration
Explain the Microsoft Official Curriculum (MOC) program and present the list
of additional recommended courses
Refer students to the Microsoft Official Curriculum Web page at http://www.microsoft.com/traincert for information about curriculum paths Inform students about the Microsoft Certified Professional (MCP) program, any certification exams that are related to this course, and the various certification options
Explain the class hours, extended building hours for labs, parking, restroom location, meals, phones, message posting, and where smoking is or is not allowed
Let students know if your facility has Internet access that is available for them
to use during class breaks
Also, make sure that the students are aware of the recycling program if one is available
Trang 19 Programming, networking, and database experience
ASP.NET and Visual Studio NET experience
Expectations for the course
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Trang 20***************************** ILLEGAL FOR NON - TRAINER USE ******************************
The following materials are included with your kit:
covered in class, in addition to the hands-on lab exercises
contains the Web page that provides you with links to resources pertaining
to this course, including additional readings, review and lab answers, lab files, multimedia presentations, and course-related Web sites
To open the Web page, insert the Student Materials compact disc into the CD-ROM drive, and then in the root directory of the compact disc,
double-click Autorun.exe or Default.htm
instructor, you will have the opportunity to complete an online evaluation near the end of the course
To provide additional comments or inquire about the Microsoft Certified Professional program, send an e-mail message to mcphelp@microsoft.com.
Note
Trang 21z Using conditional statements
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
This course requires that you meet the following prerequisites:
Knowledge of Hypertext Markup Language (HTML) or dynamic HTML (DHTML), including:
• Using conditional statements
The completion of either Course 2559, Introduction to Visual Basic NET
Programming with Microsoft NET, or Course 2373, Programming with Microsoft Visual Basic NET, satisfies the preceding prerequisite skills
Programming experience using Microsoft Visual C#™ NET, including:
• Declaring variables
• Using loops
• Using conditional statements
The completion of either Course 2609, Introduction to C# Programming with
Microsoft NET, or Course 2124, Programming with C#, satisfies the preceding
prerequisite skills
Trang 22Course Outline
Module 1: Overview of the Microsoft NET Framework
Module 2: Using Microsoft Visual Studio NET
Module 3: Using Microsoft NET–Based Languages
Module 4: Creating a Microsoft ASP.NET Web Form
Module 5: Adding Code to a Microsoft ASP.NET Web Form
Module 6: Tracing in Microsoft ASP.NET Web Applications
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Module 1, “Overview of the Microsoft NET Framework,” discusses how the NET Framework represents a major change in the way that Web applications are built and run After completing this module, you will have a greater understanding of the NET Framework in general and Microsoft ASP.NET specifically At the end of this module, you will have the opportunity to examine the complete ASP.NET Web application that you will build in the labs throughout this course
Module 2, “Using Microsoft Visual Studio NET,” describes how to use the primary features of Microsoft Visual Studio® NET to create ASP.NET Web applications After completing this module, you will be able to navigate the Visual Studio NET integrated development environment (IDE), and be able to create, build, and view an ASP.NET Web application project
Module 3, “Using Microsoft NET–Based Languages,” introduces the different languages that are available for use when developing NET-based Web
applications After completing this module, you will be able to identify the languages that support the NET Framework, and be able to choose an appropriate development language for your needs
Module 4, “Creating a Microsoft ASP.NET Web Form,” describes how to create and populate Web Forms Web Forms are programmable Web pages that serve as the user interface (UI) for an ASP.NET Web application project After completing this module, you will be able to add a Web Form to an ASP.NET Web application project and use the Visual Studio NET toolbox to add server controls to a Web Form
Trang 23Module 5, “Adding Code to a Microsoft ASP.NET Web Form,” describes the various methods that can be used to add code to your ASP.NET Web
application After completing this module, you will be able to create event procedures for server controls, use code-behind pages in a Web application, and
use Page events in a Web application
Module 6, “Tracing in Microsoft ASP.NET Web Applications,” describes how
to catch runtime errors by using the Trace object After completing this module, you will be able to use the Trace object to view runtime information
about a Web application
Trang 24Course Outline (continued)
Module 7: Validating User Input
Module 8: Creating User Controls
Module 9: Accessing Relational Data Using Microsoft Visual Studio NET
Module 10: Accessing Data with Microsoft ADO.NET
Module 11: Calling Stored Procedures with Microsoft ADO.NET
Module 12: Reading and Writing XML Data
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Module 7, “Validating User Input,” describes the input validation controls that are available in ASP.NET, and describes how to add these controls to an ASP.NET Web Form by using Visual Studio NET After completing this module, you will be able to identify when input validation is appropriate, use input validation controls to verify user input, and verify that all of the validation controls on a page are valid
Module 8, “Creating User Controls,” describes how user controls provide an easy way to reuse common UI components and code throughout an ASP.NET Web application After completing this module, you will be able to create a user control, and then add that user control to an ASP.NET Web Form
Module 9, “Accessing Relational Data Using Microsoft Visual Studio NET,” describes what Microsoft ADO.NET is, and describes how you can incorporate ADO.NET into an ASP.NET Web application by using the data tools that are built into Visual Studio NET After completing this module, you will be able to create a connection to a database by using ADO.NET, and then display data in a Web Form
Module 10, “Accessing Data with Microsoft ADO.NET,” describes how to manually add data access to your Web application After completing this module, you will be able to programmatically connect to a Microsoft SQL Server™ database by using SqlConnection and SqlDataAdapter objects, store multiple tables of data in a DataSet object, and then display that data in
DataGrid controls Finally, you will be able to manually read data from a
SQL Server database by using a SqlDataReader object, and bind a list-bound server control to a DataSet, or to a DataReader control
Trang 25Module 11, “Calling Stored Procedures with Microsoft ADO.NET,” describes how to accomplish data access tasks from your Web application by using stored procedures After completing this module, you will be able to explain the reasons for using stored procedures with a database and be able to call stored procedures
Module 12, “Reading and Writing XML Data,” describes how to read, write, and display Extensible Markup Language (XML) data After completing this
module, you will be able to read and write XML data into a DataSet object
You will also be able to store, retrieve, and transform XML data by using
XmlDataDocument and XslTransform objects, and be able to use the XML
Web server control to load and save XML data
Trang 26Course Outline (continued)
Module 13: Consuming and Creating XML Web Services
Module 14: Managing State
Module 15: Configuring, Optimizing, and Deploying a Microsoft ASP.NET Web Application
Module 16: Securing a Microsoft ASP.NET Web Application
Module 17: Review
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Module 13, “Consuming and Creating XML Web Services,” describes how to call an XML Web service directly with a browser, and programmatically call an XML Web service from a Web Form Also covered in this module is the creation and publishing of XML Web services by using Visual Studio NET After completing this module, you will be able to call an XML Web service directly from a browser, and be able to create a Web reference to
programmatically call an XML Web service from a Web Form You will also
be able to build and publish an XML Web service
Module 14, “Managing State,” describes how to maintain state in an ASP.NET Web application State is the ability to retain user information in a Web application After completing this module, you will be able to manage state in
an ASP.NET Web application by using application and session variables You will also be able to use cookies and cookieless sessions to manage state
Module 15, “Configuring, Optimizing, and Deploying a Microsoft ASP.NET Web Application,” describes how to set up and deploy your ASP.NET Web
application After completing this module, you will be able to use the Cache
object and page output caching, and be able to configure a Web application by using the Machine.config and Web.config files You will also be able to deploy
an ASP.NET Web application
Module 16, “Securing a Microsoft ASP.NET Web Application,” describes how
to use Microsoft Windows®-based and Forms-based authentication A discussion of Microsoft Passport authentication is also included After completing this module, you will be able to secure ASP.NET Web applications
by using Windows-based or Forms-based authentication
Module 17, “Review,” consists of a review of the main concepts that you have learned throughout this course In this module, you will have an opportunity to apply your new knowledge in Lab 17, which is an interactive review game
Trang 27Setup
Windows XP Professional Edition
z Internet Information Services
z Internet Explorer 6
SQL Server 2000 Developer Edition
z SQL Server 2000 Service Pack 2
Visual Studio NET Enterprise Developer Edition
z Microsoft NET Framework Service Pack 1
Macromedia Flash Player 5
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
The following software will be used in the classroom:
Windows XP Professional Edition
• Internet Information Services (IIS)
• Microsoft Internet Explorer 6
SQL Server 2000 Developer Edition
• SQL Server 2000 Developer Service Pack 2
Visual Studio NET Enterprise Developer Edition
• Microsoft NET Framework Service Pack 1
Macromedia Flash Player 5 There are files that are associated with the labs in this course The lab files are
located in the install folder\Labfiles\LabXXLL folder on the student computers where XX is the Module number and LL is the language used, either VB for
Visual Basic NET or CS for C#
The classroom is configured in the workgroup model Each student computer in the classroom has Windows XP Professional installed as a member of that workgroup
Software
Course files
Classroom setup
Trang 28Microsoft Official Curriculum
2310B: Developing Microsoft ASP.NET Web Applications Using Visual Studio NET
2310B: Developing Microsoft ASP.NET Web Applications Using Visual Studio NET
http://www.microsoft.com/traincert
2389:
Programming with ADO.NET
2389:
Programming with ADO.NET
Data Access
Application Development
1905: Building XML-Based Web Applications
1905: Building XML-Based Web Applications
2663: Programming with XML in the Microsoft NET Framework
2663: Programming with XML in the Microsoft NET Framework
2300: Developing Secure Web Applications
2300: Developing Secure Web Applications
2524: Developing XML Web Services Using Microsoft ASP.NET
2524: Developing XML Web Services Using Microsoft ASP.NET
2500: Introduction
to XML and the Microsoft NET Platform
2500: Introduction
to XML and the Microsoft NET Platform
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Microsoft Training and Certification develops Microsoft Official Curriculum (MOC), including MSDN® Training, for computer professionals who design, develop, support, implement, or manage solutions by using Microsoft products and technologies These courses provide comprehensive skills-based training in instructor-led and online formats
After you complete this course, there are several follow-up courses that are available that will allow you to focus in greater depth on subjects that are covered in this course
For more information about the curriculum paths, see the Microsoft Official Curriculum Web page at http://www.microsoft.com/traincert/training/moc The following table lists courses would be an appropriate continuation of the data access sections of this course
Course Title and description
is a five-day course that covers how to structure and validate data in a document by using document type definitions (DTDs) Students also learn how to get data from a database by using XML, and how to present that data by using the Extensible Stylesheet Language (XSL)
is a five-day course that covers accessing data sources from based applications, Web applications, and Web services by using ADO.NET
Windows-Introduction
Additional
recommended courses
Data access
Trang 29(continued)
Course Title and description
2500 Introduction to XML and the Microsoft NET Platform,
is a two-day course that provides a technological overview of the structure and programming techniques of XML This course shows where XML figures into the Microsoft NET vision and into the larger world of
distributed standards-based computing
is a three-day course for programmers who have some experience with XML This course covers programming that uses XML in the
.NET Framework
The following table lists courses would be an appropriate continuation of the Web application development sections of this course
Course Title and description
is a three-day course that teaches Web developers the knowledge and skills that are required to build Web applications by using secure coding techniques This course also covers the security features that are available
in Windows XP, IIS, ASP.NET, and ADO.NET Students learn how to identify Web site security vulnerabilities and understand the trade-offs between functionality and speed when choosing the appropriate security mechanisms Students will also learn how to use the security features that are available in Windows 2000, SQL Server, ASP.NET, and ADO.NET
is a three-day course that covers how to build and deploy Web services by using Visual Studio NET
Other related courses may become available in the future, so for up-to-date information about recommended courses, visit the Training and Certification Web site at http://www.microsoft.com/traincert
Application
development
Microsoft Training and
Certification information
Trang 30Microsoft Certified Professional Program
http://www.microsoft.com/traincert
Exam number and title Core exam for the Core exam for the following tracks following tracks
70-305: Developing and Implementing Web Applications with Microsoft Visual Basic NET and Microsoft Visual Studio NET
70-305: Developing and Implementing Web Applications with Microsoft Visual Basic NET and Microsoft Visual Studio NET MCSD & MCAD
70-315: Developing and Implementing Web Applications with Microsoft Visual C# NET and Microsoft Visual Studio NET
70-315: Developing and Implementing Web Applications with Microsoft Visual C# NET and Microsoft Visual Studio NET MCSD & MCAD
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Microsoft Training and Certification offers a variety of certification credentials for developers and IT professionals The Microsoft Certified Professional program is the leading certification program for validating your experience and skills, keeping you competitive in today’s changing business environment The following exams relate to ASP.NET Web Application design:
Exam 70-305: Developing and Implementing Web Applications with
Microsoft Visual Basic NET and Microsoft Visual Studio NET, measures
your ability to develop and implement Web applications with Web Forms, ASP.NET, and the NET Framework
When you pass the Developing and Implementing Web Applications with
Microsoft Visual Basic NET and Microsoft Visual Studio NET exam, you
achieve Microsoft Certified Professional status You also earn credit toward the following certifications:
• Core credit toward Microsoft Certified Solution Developer for Microsoft NET certification
• Core or elective credit toward Microsoft Certified Application Developer for Microsoft NET certification
Exam 70-315: Developing and Implementing Web Applications with
Microsoft Visual C# NET and Microsoft Visual Studio NET, measures your
ability to develop and implement Web applications with Web Forms, ASP.NET, and the NET Framework
When you pass the Developing and Implementing Web Applications with
Microsoft Visual C# NET and Microsoft Visual Studio NET exam, you
achieve Microsoft Certified Professional status You also earn credit toward the following certifications:
• Core credit toward Microsoft Certified Solution Developer for Microsoft NET certification
• Core or elective credit toward Microsoft Certified Application Developer (MCAD) for Microsoft NET certification
Introduction
Related certification
exams
Trang 31The Microsoft Certified Professional program includes the following certifications
MCAD The Microsoft Certified Application Developer (MCAD) for Microsoft NET credential is appropriate for professionals who use Microsoft technologies to develop and maintain department-level applications, components, Web or desktop clients, or back-end data services, or who work in teams developing enterprise applications The scope of responsibility of MCADs is a subset of MCSDs
MCSD The Microsoft Certified Solution Developer (MCSD) credential is the premier certification for professionals who design and develop leading-edge business solutions with Microsoft development tools, technologies,
platforms, and the Microsoft Windows DNA architecture The types of applications MCSDs can develop include desktop applications and multi-user, Web-based, N-tier, and transaction-based applications The credential covers job tasks ranging from analyzing business requirements to
maintaining solutions
MCSA on Microsoft Windows 2000 The Microsoft Certified Systems Administrator (MCSA) certification is designed for professionals who implement, manage, and troubleshoot existing network and system environments based on Microsoft Windows 2000 platforms, including the Windows NET Server family
Implementation responsibilities include installing and configuring parts of the systems Management responsibilities include administering and supporting the systems
MCSE on Microsoft Windows 2000 The Microsoft Certified Systems Engineer (MCSE) credential is the premier certification for professionals who analyze the business requirements and design and implement the infrastructure for business solutions based on the Microsoft Windows 2000 platform and Microsoft server software, including the Windows NET Server family Implementation responsibilities include installing, configuring, and troubleshooting network systems
MCDBA on Microsoft SQL Server 2000 The Microsoft Certified Database Administrator (MCDBA) credential is the premier certification for professionals who implement and administer Microsoft SQL Server databases The certification is appropriate for individuals who derive physical database designs, develop logical data models, create physical databases, create data services by using Transact-SQL, manage and maintain databases, configure and manage security, monitor and optimize databases, and install and configure SQL Server
MCP certifications
Trang 32 MCP The Microsoft Certified Professional (MCP) credential is for individuals who have the skills to successfully implement a Microsoft product or technology as part of a business solution in an organization Hands-on experience with the product is necessary to successfully achieve certification
MCT Microsoft Certified Trainers (MCTs) demonstrate the instructional and technical skills that qualify them to deliver Microsoft Official Curriculum through Microsoft Certified Technical Education Centers (Microsoft CTECs)
The certification requirements differ for each certification category and are specific to the products and job functions addressed by the certification To become a Microsoft Certified Professional, you must pass rigorous certification exams that provide a valid and reliable measure of technical proficiency and expertise
See the Microsoft Training and Certification Web site at http://www.microsoft.com/traincert
You can also send an e-mail to mcphelp@microsoft.com if you have specific certification questions
MOC and MSDN Training Curriculum can help you develop the skills that you need to do your job They also complement the experience that you gain while working with Microsoft products and technologies However, no one-to-one correlation exists between MOC and MSDN Training courses and MCP exams Microsoft does not expect or intend for the courses to be the sole preparation method for passing MCP exams Practical product knowledge and experience is also necessary to pass the MCP exams
To help prepare for the MCP exams, use the preparation guides that are available for each exam Each Exam Preparation Guide contains exam-specific information, such as a list of the topics on which you will be tested These guides are available on the Microsoft Training and Certification Web site at http://www.microsoft.com/traincert
Certification
requirements
For More Information
Acquiring the skills
tested by an MCP exam
Trang 34THIS PAGE INTENTIONALLY LEFT BLANK
Trang 35Contents
Overview 1
Lesson: Introduction to the NET Framework 2
Lesson: Overview of ASP.NET 12
Lesson: Overview of the Lab Application 17
Review 25
Module 1: Overview of the Microsoft NET
Framework
Trang 36Information in this document, including URL and other Internet Web site references, is subject to change without notice Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred Complying with all applicable copyright laws is the responsibility of the user Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property
2002 Microsoft Corporation All rights reserved
Microsoft, MS-DOS, Windows, Windows NT, Active Directory, ActiveX, BizTalk, Hotmail, IntelliSense, JScript, MSN, MSDN, PowerPoint, Visio, Visual Basic, Visual C++, Visual C#, Visual J#, Visual Studio, Win32, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries
The names of actual companies and products mentioned herein may be the trademarks of their respective owners
Trang 37Instructor Notes
In this module, the students will learn about the Microsoft® NET Framework and Microsoft ASP.NET The students will then have an opportunity to examine the complete Web application that they will build in the labs throughout the course
After completing this module, students will be able to:
Explain the advantages of using the NET Framework
Understand the key functionality and purpose of ASP.NET in developing Web applications
Understand the basic functionality of the Web site that you will build in the labs in Course 2310B
To teach this module, you need the following materials:
Microsoft PowerPoint® file 2310B_02.ppt
Multimedia file 2310B_01A001
To prepare for this module:
Read all of the materials for this module
Complete the practices and the lab
Practice the steps for the instructor-led demonstrations
Review the multimedia demonstration
Review the Microsoft Visual Studio® NET IDE and Dynamic Help
Trang 38How to Teach This Module
This section contains information that will help you to teach this module
Lesson: Introduction to the NET Framework
This section describes the instructional methods for teaching each topic in this lesson
The key point about the NET Framework is that it is a platform- and device-independent system that is designed to work over the Internet
Do not cover the NET Framework components in depth here because there is a slide for that later in the course
With Microsoft NET, developing Web applications is much easier With NET, the students will have:
Communication with Extensible Markup Language (XML)
An infrastructure that is already built
The flexibility of using the language the developer is most familiar with
Ask students to make a guess about the number of methods and properties in various layers (2800 method calls for the Microsoft Win32® API and 184,000 method calls for the NET Framework.)
Talk about how the user interface (UI) and ASP.NET are below the
languages, meaning there is one forms model for all languages
Discuss the benefits of using the NET Framework while developing Web applications
Inform the students that if they have the NET Framework installed on their computers, they can build programs without Visual Studio NET (for instance,
by using Microsoft Notepad only) However, Visual Studio NET is a great development environment that makes developing Web applications a rich experience for the developers Visual Studio NET is designed to support the developer all the way through the development process
Lesson: Overview of ASP.NET
ASP.NET is the successor to Active Server Pages (ASP), but it is designed for more browser types, more device types, and more languages
This topic focuses on what constitutes an ASP.NET Web application Discuss the different parts of ASP.NET Web application
There is no sound in this animation
Explain the steps as the multimedia runs:
First, the request shows that the page is compiled and then processed
Second, the request shows that the page is directly processed
What is the NET
Visual Studio NET: The
Tool for NET
Trang 39Lesson: Overview of the Lab Application
This list gives a sense of the scale of the Web application project that the students will create by the end of the course
Throughout Course 2310B, students will have the choice between developing lab solutions by using Microsoft Visual Basic® NET or C#
Solutions are provided for both languages
The lab application is an ASP.NET Web application named Coho Winery Coho Winery is a fictitious company that offers several benefits to its employees The benefits proposed are Life Insurance, Retirement, Medical, and Dental benefits The lab application is composed of several Web Forms, a component, two user controls and an XML Web service There are three main databases: one that contains the list of doctors that are used for the medical benefit, another that contains the list of dentists and it is used by the XML Web services, and a third that is used to store the list of employees who are
registered to Coho Winery
The lab application components are implemented in both Visual Basic NET and Microsoft Visual C#™, and may be found by building
2310LabApplication, and by using Microsoft Internet Explorer to navigate to
http://localhost/BenefitsVB/default.aspx for the Visual Basic NET version, or
to http://localhost/BenefitsCS/default.aspx for the Visual C# version The functionality of the solutions is identical
The Lab application solution is installed on the instructor computer by default when the setup runs To experiment with the labs on the instructor computer, uninstall the Lab application solution before completing the labs
Lab Application Setup