1. Trang chủ
  2. » Khoa Học Tự Nhiên

Mcad mcsd 70 305,70 315 developing web apps with vb net vi

1,1K 85 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.086
Dung lượng 19,39 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

ActiveX, BackOffice, FrontPage, IntelliSense, JScript, Microsoft, Microsoft Press, Visual Basic, Visual C#, Visual J#, Visual Studio, Win32, Windows, and Windows NT are either registered

Trang 1

Copyright © 2003 by Microsoft Corporation

Trang 2

www.microsoft.com/mspress Send comments to tkinput@microsoft.com

ActiveX, BackOffice, FrontPage, IntelliSense, JScript, Microsoft, Microsoft Press, Visual Basic, Visual C#, Visual J#, Visual Studio, Win32, Windows, and Windows NT are either registered

trademarks or trademarks of Microsoft Corporation in the United States and/or other countries Other product and company names mentioned herein may be the trademarks of their respective owners

Trang 3

company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred

Trang 4

Welcome to MCAD/MCSD Training Kit—Developing Web Applications with Microsoft Visual Basic NET and Microsoft Visual C# NET By completing the

lessons and exercises in this book, you will acquire the skills and knowledgenecessary to develop Web-based applications in Microsoft Visual Basic NET orMicrosoft Visual C#

This book is designed for developers interested in developing Web applications

at an intermediate and advanced level It includes developing server-based

applications that use the NET Framework to present HTML content and retrievedata from client browsers running over the Internet

This book also addresses the objectives of the Microsoft Certified ProfessionalExam 70-305 and Exam 70-315 Programming is a conceptual skill that requireshands-on practice as well as familiarity with many facts This training kit

provides that practice in the form of labs at the end of each chapter In order to

be prepared for the Microsoft Certified Professional Exam 70-305 or 70-315 youmust complete these labs In some cases this will require use of additional

Trang 5

Developing and Implementing Web Applications with Microsoft Visual Basic NET and Microsoft Visual Studio NET (Exam 70-

305)

Developing and Implementing Web Applications with Microsoft Visual C# NET and Microsoft Visual Studio NET (Exam 70-315).

Prerequisites

This course requires that students meet the prerequisites that follow

Be able to create Windows applications using Microsoft Visual Studio.NET in either the Visual Basic NET or Visual C# NET programminglanguage

Reference Materials

You might find the following reference materials useful:

The Visual Studio NET online Help

The World Wide Web Consortium Web site (http://www.w3c.org)The Microsoft ASP.NET public newsgroup

(news://msnews.microsoft.com/

microsoft.public.dotnet.framework.aspnet)

About the CD-ROM

The Supplemental Course Materials CD-ROM contains a variety of

Trang 6

a reference if you get stuck while completing an exercise

Required files

Practice files, such as sample databases, that are required to perform thehands-on procedures You should use these files when indicated in theexercises

Sample exam questions

To practice taking a certification exam, you can use the sample examinstalled by the CD-ROM The sample questions help you assess yourunderstanding of the materials presented in this book

About the DVD

The DVD contains a 60-day evaluation edition of Microsoft Visual Studio NETProfessional

CAUTION

Trang 7

full retail product and is provided only for the purposes of training andevaluation Microsoft Technical Support does not support this

evaluation edition

For additional support information regarding this book and the CD-ROM andDVD (including answers to commonly asked questions about installation anduse), visit the Microsoft Press Technical Support Web site at

http://www.microsoft.com/mspress/support/ You can also email

tkinput@microsoft.com, or send a letter to Microsoft Press, Attn: MicrosoftPress Technical Support, One Microsoft Way, Redmond, WA 98502-6399

Features of This Book

Each chapter contains sections that are designed to help you get the most

educational value from the chapter

Each chapter opens with a “Before You Begin” section, which preparesyou for completing the chapter

The chapters are then divided into lessons Each lesson contains thereference and procedural information used for a specific skill

The “Summary” section identifies the key concepts from the lesson.The “Lab” section provides hands-on exercises that reinforce each ofthe skills taught in each of the chapter lessons The exercises give you

an opportunity to use the skills being presented or explore the part ofthe application being described Wherever possible, the exercises in alab build on each other to create a complete application by the end ofthat lab

The exercises offer step-by-step procedures that are identified with abullet symbol like the one to the left of this paragraph

At the end of each chapter is the “Review” section that you can use totest what you have learned

The appendix, “Questions and Answers,” contains all of the questions asked ineach chapter review and the corresponding answers

Trang 8

Icon Represents

Trang 9

on the Supplemental Course Materials CD- ROM

A hands-on exercise You should perform the exercise togive yourself an opportunity to use the skills being presented

in the lesson

Chapter and Appendix Overview

This self-paced training kit combines notes, hands-on procedures, and reviewquestions to teach you how to create Web applications with Visual Studio NET

It is designed to be completed from beginning to end, but you can choose acustomized track and complete only the sections that interest you (See the nextsection, “Finding the Best Starting Point for You,” for more information.) If youchoose the customized track option, see the “Before You Begin” section in eachchapter Any hands-on procedures that require preliminary work from precedingchapters refer to the appropriate chapters

The book is divided into the following sections and chapters:

The “About This Book” section contains an overview and introducesthe components of this training kit Read this section thoroughly to getthe greatest educational value from this training kit and to plan whichlessons you will complete

Chapter 1, “Introduction to Web Programming,” introduces you to theconcepts and terms used throughout this book, including how Web

applications work, the parts of a Web application, how the NET

Framework is organized, and how to use the Visual Studio

programming environment The sections in this chapter are intended toprovide a high-level overview of concepts that are explained in greaterdetail in subsequent chapters

Chapter 2, “Creating Web Forms Applications,” teaches how to create aWeb application using Visual Studio NET and ASP.NET You learnhow to start a new project, create a basic user interface, write code torespond to events, and preserve data within your application BecauseASP.NET is integrated with Microsoft Internet Information Services

Trang 10

Chapter 3, “Working with Web Objects,” explains creating and

organizing objects in Visual Studio NET, using the objects provided byASP.NET, and saving objects and data between requests to Web forms.Visual Basic, Visual C#, and ASP.NET are based on a common

framework, so the object-oriented programming techniques you learn inthis chapter apply through all aspects of NET programming

Chapter 4, “Creating a User Interface,” demonstrates how to use

ASP.NET controls to create a user interface for a multi-page Web formsapplication This chapter teaches you about different styles of Webforms, how to choose controls based on the tasks you want to perform,how to validate data fields, and how to navigate between the Web forms

in your application

Chapter 5, “Storing and Retrieving Data with ADO.NET,” shows how

to use ADO.NET to access and modify data stored in SQL, OLE, andOracle databases from Web forms You learn about the data tools

included with Visual Studio and how to use them to create connections

to, get records from, and perform commands on databases You will alsolearn how to display data on a Web form using either data binding orcode Finally, you learn how to use transactions to maintain the integrity

of a database

Chapter 6, “Catching and Correcting Errors,” explains how to deal withproblems that may occur in your application due to external

circumstances This chapter helps you identify, anticipate, and handlethese types of problems effectively within your application

Chapter 7, “Advanced Web Forms Programming,” teaches how to

perform advanced programming tasks that don’t fit neatly into any othercategory Although you can successfully create Web applications

without knowing the topics covered in this chapter, the lessons foundhere are an important part of mainstream Web programming and theyhelp complete your skill set

Chapter 8, “Maintaining Security,” covers how to control access to yourWeb application using the three different techniques that ASP.NETprovides for identifying and authorizing users You also learn how to

Trang 11

Chapter 9, “Building and Deploying Web Applications,” describes how

to publish your completed Web applications on a Web server for generaluse You also learn how to monitor and maintain the application once it

is in use so that it continues to perform well as the demands of yourusers change

Chapter 10, “Testing Web Applications,” teaches how to systematicallytest your Web application during development You learn how to plan,create, run, and correct problems found by tests

Chapter 11, “Creating Custom Web Controls,” demonstrates how tocreate your own, custom user-interface components This chapter

explains the different types of controls you can create, describes therelative advantages of each, and shows you how to create each differenttype of control

Chapter 12, “Optimizing Web Applications with Caching,” shows how

to store Web forms, parts of Web forms, and application data in cache tospeed application responses and reduce the amount of processing theserver must perform This chapter also demonstrates how to monitorcache performance to determine whether or not you are using cachingeffectively

Chapter 13, “Formatting Web Application Output,” teaches you how toformat the user interface of a Web application using cascading stylesheets (CSS) and Extensible Stylesheet Language Transformations(XSLT) This chapter explains the best uses for each formatting

technique and tells you how to combine the two techniques

Chapter 14, “Providing Help,” discusses the different ways that you candisplay user assistance (Help) from within a Web application You learnhow to use the HTML Help Workshop to create compiled Help files,and how to display those files from a Web application interactively.Chapter 15, “Globalizing Web Applications,” explains how to detect auser’s culture and create appropriate responses, ranging from redirectingthe user to a separate, localized Web application, to handing culturaldifferences within code and displaying a localized user interface

Trang 12

questions from the book, showing the page number for each questionand the suggested answer

The glossary provides definitions for many of the terms and conceptspresented in this training kit

Finding the Best Starting Point for You

Because this book is self-paced, you can skip some lessons and revisit themlater Use the following table to find the best starting point for you:

Want to review information

about specific topics from the

exam

Use the “Where to Find Specific Skills in ThisBook” section that follows this table

Trang 13

Create ASP.NET pages: Chapter 2, Lesson 1

Add and set directives on

ASP.NET pages

Chapter 1, Lesson 3; Chapter 6,Lessons 2 and 3; Chapter 11,Lessons 1 and 2; and Chapter

Manage the view state Chapter 3, Lesson 3

Trang 16

11, Lesson 2Implement accessibility features Chapter 13, Lesson 1

Trang 17

include relational databases, XML documents, and flat

files Methods include XML technique and ADO.NET

Chapter 5,Lessons 1, 2, and3; Chapter 7,Lesson 1

Add trace listeners and trace switches to an

application

Chapter 10,Lesson 3

Lesson 3Debug, rework, and resolve defects in code:

Provide multicultural test data to components, Chapter 15,

Trang 18

2 and 3Add assemblies to the global assembly cache Chapter 9, Lessons

and issues

Chapter 9, Lesson 4; Chapter 6, Lesson 3;and Chapter 10, Lesson 3

Table ~missing_chapter_num~-7 Configuring and Securing a Web Application

Skill Being Measured Location in Book

Configure a Web application: Chapter 9, Lesson 1

Trang 19

Chapter 8,Lesson 1; andChapter 15,Lesson 3

Trang 20

include output, fragment, and data:

Chapter 12, Lessons 1, 2,and 3

Install and configure a Web server Chapter 2,

Lessons 1 and 3;Chapter 6,

Lesson 2;

Chapter 8,Lessons 1 and 5;and Chapter 9,Lesson 2

Install and configure FrontPage Server Chapter 2,

Trang 21

Extensions Lesson 1

Getting Started

This self-paced training kit contains hands-on procedures to help you learn aboutdeveloping Web applications

To complete some of these procedures, you must have two networked computers

or be connected to a larger network Both computers must be capable of runningMicrosoft Windows XP Professional Edition, Windows 2000, or later

3.5 gigabytes (GB) on installation drive, which includes 500 megabytes(MB) on system drive

Super VGA (800 x 600) or higher-resolution monitor with 256 colors

Trang 22

Internet connection and networking card (56K modem is the minimumacceptable Internet connection speed, higher speed connection is

Microsoft Visual Studio NET Professional Edition or Visual Studio.NET Enterprise Developer Professional Edition is recommended, andEnterprise Developer Edition is ideal

Insert the Supplemental Course Materials CD-ROM into your CD-NOTE

If AutoRun is disabled on your machine, refer to theReadme file on the CD-ROM

2 Run the Setup program included on the CD-ROM Setup will

automatically install the lesson files, support files, and eBook on your

Trang 23

3 After Setup completes, it will display a Start page in your browser.You can use the Start page to view the lesson files, eBook, Readme,and additional information

NOTE

If you encounter problems installing any portion of thistraining kit, see the Readme included on the CD-ROM forTroubleshooting information and additional instructions

To use the eBook

You can view the eBook from a number of locations:

From the Start page displayed at the end of Setup

From links within the default pages of the MCSDWebAppsVB andMCSDWebAppsCS solutions installed by Setup

From the Windows Start menu using the eBook item installed in theMicrosoft Press program group

From the Windows Explorer by opening the MCSDWebApps2.chm file

Sample Exam Questions

To install the sample exam questions to your hard disk drive

1 ROM drive

Insert the Supplemental Course Materials CD-ROM into your CD-NOTE

If AutoRun is disabled on your machine, refer to theReadme.txt file on the CD-ROM

2 Click Sample Exam Questions on the user interface menu and thenselect the exercise file you want to view

Trang 24

The Microsoft Certified Professional (MCP) program provides the best method

to prove your command of current Microsoft products and technologies

Microsoft, an industry leader in certification, is on the forefront of testingmethodology Our exams and corresponding certifications are developed tovalidate your mastery of critical competencies as you design and develop, orimplement and support, solutions with Microsoft products and technologies.Computer professionals who become Microsoft certified are recognized asexperts and are sought after industry‐wide

The Microsoft Certified Professional program offers multiple certifications,based on specific areas of technical expertise, including:

Microsoft Certified Application Developer (MCAD) for Microsoft.NET

Microsoft Certified Systems Engineer (MCSE) on Windows 2000.Qualified to effectively analyze the business requirements and designand implement the infrastructure for business solutions based on theMicrosoft Windows 2000 platform and Microsoft NET Enterprise

Servers

Microsoft Certified Systems Administrator (MCSA) on Microsoft

Trang 25

Individuals who implement, manage, and troubleshoot existing networkand system environments based on the Microsoft Windows 2000 andWindows NET Server operating systems

Microsoft Certified Database Administrator (MCDBA) on MicrosoftSQL Server 2000

Individuals who derive physical database designs, develop logical datamodels, create physical databases, create data services by using

Transact-SQL, manage and maintain databases, configure and managesecurity, monitor and optimize databases, and install and configureMicrosoft SQL Server

Microsoft Certified Trainer (MCT)

Instructionally and technically qualified to deliver Microsoft OfficialCurriculum through a Microsoft Certified Technical Education Center(CTEC)

Microsoft Certification Benefits

Microsoft certification, one of the most comprehensive certification programsavailable for assessing and maintaining software-related skills, is a valuablemeasure of an individual’s knowledge and expertise Microsoft certification isawarded to individuals who have successfully demonstrated their ability toperform specific tasks and implement solutions with Microsoft products Notonly does this provide an objective measure for employers to consider, it alsoprovides guidance for what an individual should know to be proficient And aswith any skills-assessment and benchmarking measure, certification brings avariety of benefits: to the individual, and to employers and organizations

Microsoft Certification Benefits for Individuals

As a Microsoft Certified Professional, you receive many benefits:

Industry recognition of your knowledge and proficiency with Microsoftproducts and technologies

A Microsoft Developer Network subscription MCPs receive rebates or

Trang 26

Network (msdn.microsoft.com/subscriptions/) during the first year ofcertification (Fulfillment details will vary, depending on your location;please see your Welcome Kit.)

Access to technical and product information direct from Microsoftthrough a secured area of the MCP Web site (go to

http://www.microsoft.com/traincert/mcp/mcpsecure.asp)

Access to exclusive discounts on products and services from selectedcompanies Individuals who are currently certified can learn more aboutexclusive discounts by visiting the MCP secured Web site (go to

http://www.microsoft.com/traincert/mcp/mcpsecure.asp and select the

“Other Benefits” link)

MCP logo, certificate, transcript, wallet card, and lapel pin to identifyyou as a Microsoft Certified Professional (MCP) to colleagues andclients Electronic files of logos and transcript may be downloaded fromthe MCP secured Web site (go to

http://www.microsoft.com/traincert/mcp/mcpsecure.asp) upon

certification

Invitations to Microsoft conferences, technical training sessions, andspecial events

Free access to Microsoft Certified Professional Magazine Online, acareer and professional development magazine Secured content on theMicrosoft Certified Professional Magazine Online Web site includes thecurrent issue (available only to MCPs), additional online-only contentand columns, an MCP-only database, and regular chats with Microsoftand other technical experts

Discount on membership to PASS (for MCPs only), the ProfessionalAssociation for SQL Server In addition to playing a key role in the onlyworldwide, user-run SQL Server user group endorsed by Microsoft,members enjoy unique access to a world of educational opportunities(go to http://www.microsoft.com/traincert/mcp/mcpsecure.asp/)

An additional benefit is received by Microsoft Certified System Engineers(MCSEs):

Trang 27

A 50-percent rebate or discount off the estimated retail price of a one-(http://www.microsoft.com/technet/)

An additional benefit is received by Microsoft Certified System Database

Administrators (MCDBAs):

year subscription to TechNet or TechNet Plus during the first year ofcertification (Fulfillment details will vary, depending on your location.Please see your Welcome Kit.) In addition, about 95 percent of the CD-ROM content is available free online at the TechNet Web site

A 50-percent rebate or discount off the estimated retail price of a one-(http://www.microsoft.com/technet/)

A one-year subscription to SQL Server Magazine Written by industryexperts, the magazine contains technical and how-to tips and advice—amust for anyone working with SQL Server

Excellent return on training and certification investments by providing astandard method of determining training needs and measuring results.Increased customer satisfaction and decreased support costs throughimproved service, increased productivity, and greater technical self-sufficiency

Reliable benchmark for hiring, promoting, and career planning

Recognition and rewards for productive employees by validating theirexpertise

Trang 28

Assurance of quality when outsourcing computer services

Requirements for Becoming a Microsoft Certified Professional

The certification requirements differ for each certification and are specific to theproducts 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 These exams are designed to test your expertise andability to perform a role or task with a product, and are developed with the input

of professionals in the industry Questions in the exams reflect how Microsoftproducts are used in actual organizations, giving them “real- world” relevance

Microsoft Certified Product candidates are required to pass one

operating system exam Candidates may pass additional Microsoft

certification exams to further qualify their skills with other Microsoftproducts, development tools, or desktop applications

Microsoft Certified Systems Engineers are required to pass five coreexams and two elective exams

Microsoft Certified Systems Administrators are required to pass threecore exams and one elective exam that provide a valid and reliable

measure of technical proficiency and expertise

Microsoft Certified Database Administrators are required to pass threecore exams and one elective exam that measures technical proficiencyand expertise

Microsoft Certified Solution Developers are required to pass three coreMicrosoft Windows operating system technology exams and one

BackOffice technology elective exam

Microsoft Certified Trainers are required to meet instructional and

technical requirements specific to each Microsoft Official Curriculumcourse they are certified to deliver The MCT program requires ongoingtraining to meet the requirements for the annual renewal of certification

Trang 29

Self-Paced Training

For motivated learners who are ready for the challenge, self-paced instruction isthe most flexible, cost-effective way to increase your knowledge and skills

A full-line of self-paced print and computer-based training materials is availabledirect from the source—Microsoft Press Microsoft Official Curriculum

courseware kits from Microsoft Press are designed for advanced computer

system professionals and are available from Microsoft Press and the MicrosoftDeveloper Division Self-paced training kits from Microsoft Press feature print-based instructional materials, along with CD-ROM- based product software,multimedia presentations, lab exercises, and practice files The Mastering Seriesprovides in-depth, interactive training on CD-ROM for experienced developers.They’re both great ways to prepare for Microsoft Certified Professional (MCP)exams

Online Training

For a more flexible alternative to instructor-led classes, turn to online instruction.It’s as near as the Internet and it’s ready whenever you are Learn at your ownpace and on your own schedule in a virtual classroom, often with easy access to

an online instructor Without ever leaving your desk, you can gain the expertiseyou need Online instruction covers a variety of Microsoft products and

technologies It includes options ranging from Microsoft Official Curriculum tochoices available nowhere else It’s training on demand, with access to learningresources 24 hours a day Online training is available through Microsoft

Certified Technical Education Centers

Microsoft Certified Technical Education Centers

Trang 30

professionals

For a listing of CTEC locations in the United States and Canada, visit the Website at http://www.microsoft.com/traincert/ctec/

Technical Support

Every effort has been made to ensure the accuracy of this book and the contents

of the companion disc If you have comments, questions, or ideas regarding thisbook or the companion disc, please send them to Microsoft Press using either ofthe following methods:

One Microsoft Way

Redmond, WA 98052-6399

The Microsoft Press Web site (http://www.microsoft.com/mspress/support/)provides corrections for books Please note that product support is not offeredthrough this Web site For further information regarding Microsoft softwaresupport options, please connect to http://www.microsoft.com/support/ or callMicrosoft Support Network Sales at (800) 936-3500

For information about ordering the full version of any Microsoft software, pleasecall Microsoft Sales at (800) 426-9400 or visit http://www.microsoft.com

Trang 31

Introduction to Web Programming

About This Chapter

In this chapter, you will learn about Internet applications and the tools you use tocreate them This chapter introduces you to the concepts and terms used

throughout this book, including how ASP.NET Web applications work, the parts

of a Web application, how the Microsoft NET Framework is organized, and how

to use the Microsoft Visual Studio NET programming environment The

sections in this chapter will provide a high-level overview of concepts that areexplained in greater detail in subsequent chapters

Trang 32

Web applications are one of four types of Internet applications that you cancreate using Visual Studio NET In this lesson, you will learn a little about thedifferent types of Internet applications and get an overview of how an ASP.NETWeb application works

After this lesson, you will be able to

Describe four different types of Internet applications and know where tolook for training on developing each type of application

Explain how a Web application executes over the Internet and how thatdiffers from a traditional, static Web site

Understand the role that ASP.NET plays in creating Web applicationsList the parts that make up ASP.NET and describe some of its

That definition is too broad for the subject of a single book To narrow the focus

a bit, let’s identify four types of Internet applications:

Web applications

Trang 33

browser

Web services

These components provide processing services from a server to otherapplications over the Internet

You can use Visual Studio NET to create each of these types of applications.The first type, Web applications, is the subject of this book Table 1-1 shows theVisual Studio NET Help topics and the books in this series that deal with eachtype of Internet application

Table 1-1 Sources of Information About Internet Applications

Application

type

Use these topics in online Help

System.Web.Services

namespace

MCAD/MCSD Self-Paced Training Kit:Developing XML Web Services andServer Components with MicrosoftVisual Basic NET and Microsoft VisualC# NET

Internet-enabled

applications

Microsoft Windowsforms, HTML Help,WebBrowser control,

MCAD/MCSD Self-Paced Training Kit:Developing Windows-Based

Applications with Microsoft Visual Basic

Trang 34

Information Services (IIS) IIS manages the application, passes requests from

Trang 35

Transport Protocol (HTTP) A protocol is a set of rules that describe how two or

more items communicate over a medium, such as the Internet Figure 1-2 showshow the client and server interact over the Internet

Figure 1-2 Client/server interaction in a Web application

The Web application composes responses to requests from resources found onthe server These resources include the executable code running on the server(what we traditionally think of as the “application” in Microsoft Windows

programming), Web forms, HTML pages, image files, and other media thatmake up the content of the application

Web applications are much like traditional Web sites, except that the contentpresented to the user is actually composed dynamically by executable, ratherthan being served from a static page stored on the server Figure 1-3 shows how

a Web application composes the HTML returned to a user

Figure 1-3 An ASP.NET Web application response from server resources

Trang 36

Present content that is highly volatile, such as inventory, pending order,and shipment information

This is only a partial list Basically, you can do anything with a Web applicationthat you can imagine doing with any client/server application What makes aWeb application special is that the client/server interaction takes place over theInternet

What ASP.NET Provides

ASP.NET is the platform that you use to create Web applications and Web

services that run under IIS ASP.NET is not the only way to create a Web

application Other technologies, notably the CGI, also enable you to create Webapplications What makes ASP.NET special is how tightly it is integrated withthe Microsoft server, programming, data access, and security tools

ASP.NET provides a high level of consistency across Web application

development In a way, this consistency is similar to the level of consistency thatMicrosoft Office brought to desktop applications ASP.NET is part of the NETFramework and is made up of several components

Trang 37

Server and HTML controls

These are the user-interface components that you use to gather

information from and provide responses to users

In addition to the preceding components, ASP.NET also uses the following,more general programming components and Windows tools These items aren’tpart of ASP.NET However, they are key to ASP.NET programming

Microsoft Internet Information Services (IIS)

As mentioned in the previous section, IIS hosts Web applications on theWindows server

The Microsoft Visual Basic NET, Microsoft Visual C#, and MicrosoftVisual J# programming languages

These three languages have integrated support in Visual Studio NETfor creating Web applications

The NET Framework

This is the complete set of Windows programming classes, includingthe ASP.NET classes as well as classes for other programming taskssuch as file access, data type conversion, array and string manipulation,and so on

Microsoft ADO.NET database classes and tools

These components provide access to Microsoft SQL Server and ODBCdatabases Data access is often a key component of Web applications.Microsoft Application Center Test (ACT)

This Visual Studio NET component provides an automated way tostress-test Web applications

ASP.NET is the most complete platform for developing Web applications thatrun under IIS However, it is important to remember that ASP.NET is not

Trang 38

Advantages of ASP.NET

ASP.NET has many advantages over other platforms when it comes to creatingWeb applications Probably the most significant advantage is its integration withthe Windows server and programming tools Web applications created withASP.NET are easier to create, debug, and deploy because those tasks can all beperformed within a single development environment—Visual Studio NET

Access to the NET Framework, which simplifies many aspects of

Windows programming

Use of the widely known Visual Basic programming language, whichhas been enhanced to fully support object-oriented programming

Trang 39

Built-in features for caching frequently requested Web pages on theserver, localizing content for specific languages and cultures, anddetecting browser capabilities

Trang 40

In this lesson, you will learn how ASP.NET organizes a Web application intoparts, and you will learn the roles and names of those parts You will be

introduced to Web forms, which are the central user-interface element of Webapplications

ASP.NET is part of the larger NET Framework, so this lesson will also discusshow the NET Framework is organized and how NET applications run

differently from the traditional Windows applications you might be used to

Finally, this lesson ends with a discussion of the programming languages youcan use to create Web applications ASP.NET is not bound to any one

programming language, and the end of this lesson lists some of the other

available languages and explains some of the major differences between the twolanguages (Visual Basic NET and Visual C#) featured in this book

After this lesson, you will be able to

List the parts of a Web application and describe how they run on theserver

Explain how a Web form differs from and is similar to both an HTMLpage and a Windows form

Ngày đăng: 25/03/2019, 16:03

Nguồn tham khảo

Tài liệu tham khảo Loại Chi tiết
1. What is the main difference between the Button server control and the Button HTML control?When clicked, the Button server control triggers an ASP.NET Click event procedure on the server. The Button HTML control triggers the event procedure indicated in the button’s onclick attribute, which runs on the client Sách, tạp chí
Tiêu đề: Click" event procedure on the server. The Button HTML controltriggers the event procedure indicated in the button’s "onclick
2. How do you get several RadioButton controls to interoperate on a Web form so that only one of the RadioButton controls can have a value of True/true at any given time?Set the GroupName property of each RadioButton to the same name Sách, tạp chí
Tiêu đề: True/true" at any given time?Set the "GroupName
5. What is wrong with the following line of code?Visual Basic .NETServer.Transfer("Default.htm")Visual C#Server.Transfer("Default.htm");You can’t use the Transfer method with HTML pages. It works only with .aspx pages Sách, tạp chí
Tiêu đề: Default.htm")Visual C#Server.Transfer("Default.htm
3. Why does ASP.NET perform validation on both the client and the server Khác
4. What types of validation would you use to verify that a user entered a valid customer number Khác
6. Why can’t you open a new browser window from within server code Khác
1. What steps would you follow and what objects would you use to quickly find the number of records in a database table Khác

TỪ KHÓA LIÊN QUAN