Tải bản đầy đủ (.pdf) (741 trang)

70 305 70 315 developing web applications with visual basic

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.15 MB, 741 trang )

Copyright©2002byMicrosoftCorporation


PUBLISHEDBY
MicrosoftPress
ADivisionofMicrosoftCorporation
OneMicrosoftWay
Redmond,Washington98052-6399
Copyright©2002byMicrosoftCorporation
Allrightsreserved.Nopartofthecontentsofthisbookmaybereproducedor
transmittedinanyformorbyanymeanswithoutthewrittenpermissionofthe
publisher.
LibraryofCongressCataloging-in-PublicationData

MCAD/MCSDSelf-PacedTrainingKit:DevelopingWebApplicationswithMicrosoftV
andMicrosoftVisualC#.NET
p.cm.
Includesindex.
ISBN0-7356-1584-5
1.Electronicdataprocessingpersonnel--Certification.2.Microsoft
software--Examinations--Studyguides.3.Microsoft.NETFramework.4.Microsoft
Windows(Computerfile)I.MicrosoftCorporation.
QA76.3.M32672002
005.7'2--dc212002023561

PrintedandboundintheUnitedStatesofAmerica.
123456789QWT765432
DistributedinCanadabyH.B.FennandCompanyLtd..
ACIPcataloguerecordforthisbookisavailablefromtheBritishLibrary.
MicrosoftPressbooksareavailablethroughbooksellersanddistributors
worldwide.Forfurtherinformationaboutinternationaleditions,contactyour


localMicrosoftCorporationofficeorcontactMicrosoftPressInternational


directlyatfax(425)936-7329.VisitourWebsiteat
www.microsoft.com/mspress.Sendcommentsto
ActiveX,FrontPage,IntelliSense,JScript,Microsoft,MicrosoftPress,
PhotoDraw,VisualBasic,VisualC++,VisualC#,VisualStudio,Windows,
WindowsMediaPlayer,andWindowsNTareeitherregisteredtrademarksor
trademarksofMicrosoftCorporationintheUnitedStatesand/orothercountries.
Otherproductandcompanynamesmentionedhereinmaybethetrademarksof
theirrespectiveowners.
Theexamplecompanies,organizations,products,domainnames,e-mail
addresses,logos,people,places,andeventsdepictedhereinarefictitious.No
associationwithanyrealcompany,organization,product,domainname,e-mail
address,logo,person,place,oreventisintendedorshouldbeinferred.
AcquisitionsEditor:KathyHarding
ProjectEditor:KarenSzall
TechnicalEditor:BrianJohnson
Author:JeffWebb
Chapter7referencestheCreditCardVerifierWebServicewiththepermission
ofChristopherChenowethatCDYNESystemsandtheDailyQuoteWebService
withthepermissionofCameronBraidwoodateffectivewebcomputing,ltd.


AboutThisBook
WelcometoMCAD/MCSDTrainingKit—DevelopingWebApplicationswith
MicrosoftVisualBasic.NETandMicrosoftVisualC#.NET.Bycompletingthe
lessonsandexercisesinthisbook,youwillacquiretheskillsandknowledge
necessarytodevelopWeb-basedapplicationsinMicrosoftVisualBasic.NETor
MicrosoftVisualC#.

ThisbookisdesignedfordevelopersinterestedindevelopingWebapplications
atanintermediateandadvancedlevel.Itincludesdevelopingserver-based
applicationsthatusethe.NETFrameworktopresentHTMLcontentandretrieve
datafromclientbrowsersrunningovertheInternet.
ThisbookalsoaddressestheobjectivesoftheMicrosoftCertifiedProfessional
Exam70-305andExam70-315.

FormoreinformationaboutbecomingaMicrosoftCertified
ApplicationDeveloper(MCAD)oraMicrosoftCertifiedSolution
Developer(MCSD),seethesectiontitled“TheMicrosoftCertified
ProfessionalProgram”laterinthisintroduction.

The“GettingStarted”sectionofthisintroductionprovidesimportantsetup
instructionsthatdescribethehardwareandsoftwarerequirementstocomplete
theexercisesinthiscourse.Italsoprovidesinformationaboutthenetworking
configurationnecessarytocompletesomeofthehands-onexercises.Read
throughthissectionthoroughlybeforeyoustartthelessons.

IntendedAudience
Thisbookwascreatedforsoftwaredeveloperswhoneedtodesign,plan,
implementandsupportWebapplicationsorwhoplantotaketherelated
MicrosoftCertifiedProfessionalexams:


DevelopingandImplementingWebApplicationswithMicrosoftVisualBasic
.NETandMicrosoftVisualStudio.NET(Exam70-305).
DevelopingandImplementingWebApplicationswithMicrosoftVisualC#
.NETandMicrosoftVisualStudio.NET(Exam70-315).

Prerequisites

Thiscourserequiresthatstudentsmeettheprerequisitesthatfollow.
BeabletocreateWindowsapplicationsusingMicrosoftVisualStudio.NETin
eithertheVisualBasic.NETorVisualC#.NETprogramminglanguage.
Haveabasicunderstandingoftheobject-orientedprogrammingconcepts
includingclasses,properties,methods,andevents.
UnderstandthefundamentalelementsintheHypertextMarkupLanguage
(HTML)usedtoauthorWebcontent.
UnderstandhowWebcontentisstoredandaccessedovertheInternet.This
includesbeingabletoexplaintherolesofWebservers,Internetprotocols,and
Webclients(suchasbrowsers).

ReferenceMaterials
Youmightfindthefollowingreferencematerialsuseful:
TheVisualStudio.NETonlineHelp
TheWorldWideWebConsortiumWebsite()
TheMicrosoftASP.NETpublicnewsgroup(
news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet)

AbouttheCD-ROM
TheSupplementalCourseMaterialsCD-ROMcontainsavarietyof
informationalaidsthatmaybeusedthroughoutthisbook:
eBook.Acompleteelectronicversion(eBook)ofthistrainingkit.
Lessonsamples.MostlessonsinthistrainingkitincludesampleVisualStudio
projectsthatorganizethecodeandWebformsshowninthetrainingkit.Some


ofthesesamplesarecompleteapplications,butmostarelimitedsnippetsthat
demonstratespecificskills.
Completedlabs.Eachchapterinthistrainingkitconcludeswithalab
containingaseriesofexercisesthatreinforcetheskillsyoulearned.Completed

versionsoftheseapplicationsareincludedsothatyoucancompareyour
results.Youcanalsousethesecompletedapplicationsasareferenceifyouget
stuckwhilecompletinganexercise.
Requiredfiles.Practicefiles,suchassampledatabases,thatarerequiredto
performthehands-onprocedures.Youshouldusethesefileswhenindicatedin
theexercises.
Sampleexamquestions.Topracticetakingacertificationexam,youcanuse
thesampleexamquestionsprovidedontheCD-ROM.Thesamplequestions
helpyouassessyourunderstandingofthematerialspresentedinthisbook.

AbouttheDVD
TheDVDcontainsa60-dayevaluationeditionofMicrosoftVisualStudio.NET
Professional.

The60-dayEvaluationEditionprovidedwiththistrainingisnotthe
fullretailproductandisprovidedonlyforthepurposesoftraining
andevaluation.MicrosoftTechnicalSupportdoesnotsupportthis
evaluationedition.

ForadditionalsupportinformationregardingthisbookandtheCD-ROMand
DVD(includinganswerstocommonlyaskedquestionsaboutinstallationand
use),visittheMicrosoftPressTechnicalSupportWebsiteat
Youcanalsoemail
,orsendalettertoMicrosoftPress,Attn:Microsoft
PressTechnicalSupport,OneMicrosoftWayRedmond,WA98502-6399.

FeaturesofThisBook


Eachchaptercontainssectionsthataredesignedtohelpyougetthemost

educationalvaluefromthechapter.
Eachchapteropenswitha“BeforeYouBegin”section,whichpreparesyoufor
completingthechapter.
Thechaptersarethendividedintolessons.Eachlessoncontainsthereference
andproceduralinformationusedforaspecificskill.
The“Summary”sectionidentifiesthekeyconceptsfromthelesson.
The“Lab”sectionprovideshands-onexercisesthatreinforceeachoftheskills
taughtineachofthechapterlessons.Theexercisesgiveyouanopportunityto
usetheskillsbeingpresentedorexplorethepartoftheapplicationbeing
described.Whereverpossible,theexercisesinalabbuildoneachotherto
createacompleteapplicationbytheendofthatlab.
Attheendofeachchapteristhe“Review”sectionthatyoucanusetotestwhat
youhavelearned.
Theappendix,“QuestionsandAnswers,”containsallofthequestionsaskedin
eachchapterreviewandthecorrespondinganswers.

Notes
SeveraltypesofNotesappearthroughoutthelessons.
NotesmarkedTipcontainexplanationsofpossibleresultsoralternative
methodsforperformingtasks.
NotesmarkedImportantcontaininformationthatisessentialtocompletinga
task.
NotesmarkedNotecontainsupplementalinformation.
NotesmarkedCautioncontainwarningsaboutpossiblelossofdata.

NotationalConventions
Thefollowingnotationalconventionsareusedthroughoutthisbook.
Charactersorcommandsthatyoutypeappearinboldtype.



Italicinsyntaxstatementsindicatesplaceholdersforvariableinformation.
Italicisalsousedforbooktitles.
Namesoffilesandfoldersappearininitialcapitalletters,exceptwhenyouare
totypethemdirectly.Unlessotherwiseindicated,youcanuselowercaseletters
whenyoutypeafilenameinadialogboxoratacommandprompt.
Filenameextensions,whentheyappearwithoutafilename,areinlowercase
letters.
Acronymsappearinalluppercaseletters.
Monospacetyperepresentscodesamples,examplesofscreentext,orentries
thatyoumighttypeatacommandpromptorininitializationfiles.

ChapterandAppendixOverview
Thisself-pacedtrainingkitcombinesnotes,hands-onprocedures,andreview
questionstoteachyouhowtocreateWebapplicationswithVisualStudio.NET.
Itisdesignedtobecompletedfrombeginningtoend,butyoucanchoosea
customizedtrackandcompleteonlythesectionsthatinterestyou.(Seethenext
section,“FindingtheBestStartingPointforYou,”formoreinformation.)Ifyou
choosethecustomizedtrackoption,seethe“BeforeYouBegin”sectionineach
chapter.Anyhands-onproceduresthatrequirepreliminaryworkfrompreceding
chaptersrefertotheappropriatechapters.
Thebookisdividedintothefollowingsectionsandchapters:
The“AboutThisBook”sectioncontainsanoverviewandintroducesthe
componentsofthistrainingkit.Readthissectionthoroughlytogetthegreatest
educationalvaluefromthistrainingkitandtoplanwhichlessonsyouwill
complete.
Chapter1,“IntroductiontoWebProgramming,”introducesyoutotheconcepts
andtermsusedthroughoutthisbook,includinghowWebapplicationswork,
thepartsofaWebapplication,howthe.NETFrameworkisorganized,and
howtousetheVisualStudioprogrammingenvironment.Thesectionsinthis
chapterareintendedtoprovideahigh-leveloverviewofconceptsthatare

explainedingreaterdetailinsubsequentchapters.
Chapter2,“CreatingWebFormsApplications,”teacheshowtocreateaWeb
applicationusingVisualStudio.NETandASP.NET.Youlearnhowtostarta
newproject,createabasicuserinterface,writecodetorespondtoevents,and


preservedatawithinyourapplication.BecauseASP.NETisintegratedwith
MicrosoftInternetInformationServices(IIS),youalsolearnaboutIISand
howtouseittoorganizeyourWebapplication.
Chapter3,“WorkingwithWebObjects,”explainscreatingandorganizing
objectsinVisualStudio.NET,usingtheobjectsprovidedbyASP.NET,and
savingobjectsanddatabetweenrequeststoWebforms.VisualBasic,Visual
C#,andASP.NETarebasedonacommonframework,sotheobject-oriented
programmingtechniquesyoulearninthischapterapplythroughallaspectsof
.NETprogramming.
Chapter4,“CreatingaUserInterface,”demonstrateshowtouseASP.NET
controlstocreateauserinterfaceforamulti-pageWebformsapplication.This
chapterteachesyouaboutdifferentstylesofWebforms,howtochoose
controlsbasedonthetasksyouwanttoperform,howtovalidatedatafields,
andhowtonavigatebetweentheWebformsinyourapplication.
Chapter5,“StoringandRetrievingDatawithADO.NET,”showshowtouse
ADO.NETtoaccessandmodifydatastoredinSQLandOLEdatabasesfrom
Webforms.YoulearnaboutthedatatoolsincludedwithVisualStudioand
howtousethemtocreateconnectionsto,getrecordsfrom,andperform
commandsondatabases.YouwillalsolearnhowtodisplaydataonaWeb
formusingeitherdatabindingorcode.Finally,youlearnhowtouse
transactionstomaintaintheintegrityofadatabase.
Chapter6,“CatchingandCorrectingErrors,”explainshowtodealwith
problemsthatmayoccurinyourapplicationduetoexternalcircumstances.
Thischapterhelpsyouidentify,anticipate,andhandlethesetypesofproblems

effectivelywithinyourapplication.
Chapter7,“AdvancedWebFormsProgramming,”teacheshowtoperform
advancedprogrammingtasksthatdon'tfitneatlyintoanyothercategory.
AlthoughyoucansuccessfullycreateWebapplicationswithoutknowingthe
topicscoveredinthischapter,thelessonsfoundhereareanimportantpartof
mainstreamWebprogrammingandtheyhelpcompleteyourskillset.
Chapter8,“MaintainingSecurity,”covershowtocontrolaccesstoyourWeb
applicationusingthethreedifferenttechniquesthatASP.NETprovidesfor
identifyingandauthorizingusers.Youalsolearnhowtosecuredata
transmittedacrosstheInternetsothatitcannotbereadbyothers.
Chapter9,“BuildingandDeployingWebApplications,”describeshowto
publishyourcompletedWebapplicationsonaWebserverforgeneraluse.You


alsolearnhowtomonitorandmaintaintheapplicationonceitisinusesothat
itcontinuestoperformwellasthedemandsofyouruserschange.
Chapter10,“TestingWebApplications,”teacheshowtosystematicallytest
yourWebapplicationduringdevelopment.Youlearnhowtoplan,create,run,
andcorrectproblemsfoundbytests.
Chapter11,“CreatingCustomWebControls,”demonstrateshowtocreate
yourown,customuser-interfacecomponents.Thischapterexplainsthe
differenttypesofcontrolsyoucancreate,describestherelativeadvantagesof
each,andshowsyouhowtocreateeachdifferenttypeofcontrol.
Chapter12,“WorkingwithMultimedia,”showshowtoaddsound,video,and
animationtoWebapplicationsandhowtocontroltheirdisplayandplaybackin
code.
Chapter13,“FormattingWebApplicationOutput,”teachesyouhowtoformat
theuserinterfaceofaWebapplicationusingcascadingstylesheets(CSS)and
ExtensibleStylesheetLanguageTransformations(XSLT).Thischapter
explainsthebestusesforeachformattingtechniqueandtellsyouhowto

combinethetwotechniques.
Chapter14,“ProvidingHelp,”discussesthedifferentwaysthatyoucan
displayuserassistance(Help)fromwithinaWebapplication.Youlearnhowto
usetheHTMLHelpWorkshoptocreatecompiledHelpfiles,andhowto
displaythosefilesfromaWebapplicationinteractively.
Chapter15,“GlobalizingWebApplications,”explainshowtodetectauser's
cultureandcreateappropriateresponses,rangingfromredirectingtheusertoa
separate,localizedWebapplication,tohandingculturaldifferenceswithincode
anddisplayingalocalizeduserinterface.
Theappendix,“QuestionsandAnswers,”listsallofthereviewquestionsfrom
thebook,showingthepagenumberforeachquestionandthesuggested
answer.
Theglossaryprovidesdefinitionsformanyofthetermsandconceptspresented
inthistrainingkit.

FindingtheBestStartingPointforYou
Becausethisbookisself-paced,youcanskipsomelessonsandrevisitthem
later.Usethefollowingtabletofindthebeststartingpointforyou:


Ifyou
Followthislearningpath
Arepreparingtotakethe
Readthe“GettingStarted”section.Thenwork
MicrosoftCertified
throughChapters1-4.Workthroughthe
Professionalexam70-305or
remainingchaptersinanyorder.
70-315
Wanttoreviewinformation

Usethe“WheretoFindSpecificSkillsinThis
aboutspecifictopicsfromthe
Book”sectionthatfollowsthistable.
exam

WheretoFindSpecificSkillsinThisBook
ThefollowingtablesprovidealistoftheskillsmeasuredoncertificationExam
70-305,DevelopingandImplementingWebApplicationswithMicrosoftVisual
Basic.NETandMicrosoftVisualStudio.NET,orExam70-315,Developingand
ImplementingWebApplicationswithMicrosoftVisualC#.NETandMicrosoft
VisualStudio.NET.Thetableprovidestheskill,andwhereinthisbookyouwill
findthelessonrelatingtothatskill.

Examskillsaresubjecttochangewithoutpriornoticeandatthesole
discretionofMicrosoft.
CreatingUserServices
SkillBeingMeasured
LocationinBook
CreateASP.NETpages:
Chapter2,Lesson1
AddandsetdirectivesonASP.NETpages
Chapter6,Lesson2,and
Separateuserinterfaceresourcesfrom
Chapter11,Lesson2
businesslogic
Chapter3,Lesson1
AddWebservercontrols,HTMLserver
controls,usercontrols,andHTMLcodeto
Chapter4,Lessons1and2
ASP.NETpages:

Chapter4,Lesson1
Setpropertiesoncontrols
Chapter4,Lesson1
Loadcontrolsdynamically
Chapter4,Lesson1,and
Applytemplates
Chapter5,Lesson2
SetstylesonASP.NETpagesbyusing
Chapter13,Lesson1
cascadingstylesheets
Chapter12,Lessons1and2


InstantiateandinvokeanActiveXcontrol
Implementnavigationfortheuserinterface:
Managetheviewstate
Managedataduringpost-backevents
Usesessionstatetomanagedataacross
pages

Chapter4,Lesson3;Chapter
2,Lesson2;andChapter3,
Lesson3
Chapter3,Lesson3
Chapter3,Lesson3
Chapter3,Lesson3
Chapter4,Lesson2
Chapter15,Lesson3

Validateuserinput:

Validatenon-Latinuserinput
Implementerrorhandlingintheuserinterface:
Chapter6,Lessons1,2,and3
Configurecustomerrorpages
Chapter6,Lesson2
ImplementGlobal.asax,application,pageChapter6,Lesson2
level,andpageeventerrorhandling
Chapter14,Lessons1,2,and
Implementonlineuserassistance
3
IncorporateexistingcodeintoASP.NETpages
Chapter1,Lesson2
Chapter4,Lesson1
Displayandupdatedata:
Chapter5,Lessons1and2;
Transformandfilterdata
Chapter13,Lesson2
Binddatatotheuserinterface
Chapter4,Lesson1
Usecontrolstodisplaydata
Chapter4,Lesson1
InstantiateandinvokeWebservicesor
components:
Chapter7,Lesson4
InstantiateandinvokeaWebservice
Chapter7,Lesson4
InstantiateandinvokeaCOMorCOM+
Chapter10,Lesson2
component
Chapter3,Lesson1

Instantiateandinvokea.NETcomponent
Implementglobalization:
Implementlocalizabilityfortheuser
Chapter15,Lesson2
interface
Chapter15,Lesson3
Convertexistingencodings
Chapter15,Lesson1
Implementright-to-leftandleft-to-right
Chapter15,Lesson1
mirroring
Prepareculture-specificformatting
Handleevents:
Createeventhandlers
Chapter2,Lesson2
Raiseevents


Implementaccessibilityfeatures
Chapter13,Lesson1
Useandeditintrinsicobjects,including
response,request,session,server,and
application:
Retrievevaluesfromthepropertiesof
Chapter3,Lesson2
intrinsicobjects
Setvaluesonthepropertiesofintrinsic
objects
Useintrinsicobjectstoperformoperations
CreatingandManagingComponentsand.NETAssemblies

SkillBeingMeasured
LocationinBook
Createandmodifya.NETassembly: Chapter9,Lesson1,andChapter11,
Createandimplementsatellite
Lesson3
assemblies
Chapter15,Lesson2
Createresource-onlyassemblies
Chapter15,Lesson2
ConsumingandManipulatingData
Location
SkillBeingMeasured
inBook
Chapter
AccessandmanipulatedatafromaMicrosoftSQLServerdatabase
5,Lesson
bycreatingandusingadhocqueriesandstoredprocedures
1
Accessandmanipulatedatafromadatastore.Datastoresinclude Chapter
relationaldatabases,XMLdocuments,andflatfiles.Methods
5,Lesson
includeXMLtechniqueandADO.NET.
1
Chapter
Handledataerrors
6,Lesson
1
TestingandDebugging
SkillBeingMeasured
LocationinBook

Chapter10,
Createaunittestplan
Lesson1
Chapter10,
Implementtracing:
Lesson3
Addtracelistenersandtraceswitchestoanapplication
Chapter6,
Displaytraceoutput
Lesson3
Chapter10,
Debug,rework,andresolvedefectsincode:
Lesson3


Configurethedebuggingenvironment
Createandapplydebuggingcodetocomponents,pages,
andapplications
Providemulticulturaltestdatatocomponents,pages,and
applications
Executetests
Resolveerrorsandreworkcode

Chapter10,
Lesson1
Chapter15,
Lesson2
Chapter10,
Lesson2
Chapter10,

Lesson3

DeployingaWebApplication
Locationin
Book
Chapter9,
PlanthedeploymentofaWebapplication:
Lesson2
PlanthedeploymentofanapplicationtoaWebgarden,a
Chapter9,
Webfarm,oracluster
Lesson4
Chapter9,
DeployaWebapplication
Lesson2
Chapter9,
Addassembliestotheglobalassemblycache
Lesson2
MaintainingandSupportingaWebApplication
SkillBeingMeasured
LocationinBook
Optimizetheperformanceofa
Chapter9,Lesson3
Webapplication
Diagnoseandresolveerrors
Chapter9,Lesson3;Chapter6,Lesson3;
andissues
andChapter10,Lesson3
ConfiguringandSecuringaWebApplication
SkillBeingMeasured

LocationinBook
Chapter9,Lesson1
Chapter9,Lesson1;
Chapter8,Lesson1;
ConfigureaWebapplication:
andChapter15,
ModifytheWeb.configfile
Lesson3
ModifytheMachine.configfile
Chapter9,Lesson1
Addandmodifyapplicationsettings
Chapter9,Lesson1;
Chapter8,Lesson1;
andChapter15,
Lesson3
SkillBeingMeasured


ConfiguresecurityforaWebapplication:
Selectandconfigureauthenticationtype.
AuthenticationtypesincludeWindows
Authentication,None,forms-based,Microsoft
Passport,InternetInformationServices(IIS)
authentication,andcustomauthentication.
Configureauthorization.Authorizationmethods
includefile-basedmethodsandURL-based
methods:
Configurerole-basedauthorization
Implementimpersonation
Configureandimplementcaching.Cachingtypes

includeoutput,fragment,anddata:
Useacacheobject
Usecachedirectives
Configureandimplementsessionstateinvarious
topologiessuchasaWebgardenandaWebfarm:
Usesessionstatewithinaprocess
Usesessionstatewithsessionstateservice
UsesessionstatewithMicrosoftSQLserver

Installandconfigureserverservices:
InstallandconfigureaWebserver
InstallandconfigureFrontPageServerExtensions

Chapter8,Lessons1,2,
and3

Chapter8,Lessons1,2,
3,and4
Chapter8,Lesson2
Chapter8,Lesson1

Chapter9,Lesson3

Chapter3,Lesson3
Chapter9,Lesson4
Chapter9,Lesson4
Chapter2,Lesson1
Chapter2,Lessons1
and3;Chapter6,
Lesson2;Chapter8,

Lessons1and5;and
Chapter9,Lesson2
Chapter2,Lesson1,
andChapter9,Lesson
3

GettingStarted
Thisself-pacedtrainingkitcontainshands-onprocedurestohelpyoulearnabout
developingWebapplications.
Tocompletesomeoftheseprocedures,youmusthavetwonetworkedcomputers
orbeconnectedtoalargernetwork.Bothcomputersmustbecapableofrunning
MicrosoftWindowsXPProfessionalEditionorWindows2000.


Severalexercisesrequireyoutomakechangestoyourservers.This
mightcauseundesirableresultsifyouareconnectedtoalarger
network.Checkwithyournetworkadministratorbeforeattempting
theseexercises.

HardwareRequirements
Eachcomputermusthavethefollowingminimumconfiguration.Allhardware
shouldbeontheMicrosoftWindowsXPorMicrosoftWindows2000Hardware
CompatibilityList.
PentiumII–classprocessor,450megahertz(MHz)
160MBphysicalmemory,256MBrecommended
CD-ROMorDVDdrive,12xorfasterrecommended
ADVDdriveisrequiredtoinstalltheVisualStudio.NET
ProfessionalEvaluationEditionsoftware.
3.5gigabytes(GB)oninstallationdrive,whichincludes500megabytes(MB)
onsystemdrive.

SuperVGA(800x600)orhigher-resolutionmonitorwith256colors.
MicrosoftMouseorcompatiblepointingdevice
Internetconnectionandnetworkingcard(56Kmodemistheminimum
acceptableInternetconnectionspeed,higherspeedconnectionis
recommended)

SoftwareRequirements
Thefollowingsoftwareisrequiredtocompletetheproceduresinthiscourse.
MicrosoftWindowsXPProfessionalEditionorWindows2000.


Thedefaultinstallationconfigurationfortheseoperatingsystems
includestheMicrosoftInternetInformationServices(IIS)software
requiredfordevelopingWebapplications.
MicrosoftVisualStudio.NETProfessionalEditionorVisualStudio.NET
EnterpriseDeveloper.ProfessionalEditionisrecommended,andEnterprise
DeveloperEditionisideal.

SetupInstructions
Setupyourcomputeraccordingtothemanufacturer'sinstructions.

TheLessonFiles
Toinstallthelessonfilestoyourharddiskdrive
1. InserttheSupplementalCourseMaterialsCD-ROMintoyourCD-ROM
drive.
IfAutoRunisdisabledonyourmachine,refertotheReadme.txt
fileontheCD-ROM.
2. ClickLessonFilesontheuserinterfacemenutostarttheinstallprogram.
Afteryourunthatinstaller,you'llneedtorunthefollowingscriptstosetupthe
virtualdirectoriesrequiredtoruntheseapplicationsinIIS:

1. GototheWindowsCommandPrompt:
IfyouhaveVisualStudio.NETinstalled,dothisbyclickingStart,
Programs,MicrosoftVisualStudio.NET,VisualStudio.NETTools,and
thenVisualStudio.NETCommandPrompt.ThisensuresthatthePATH
environmentvariableincludesthelocationofthe.NETFramework
compilers.
Ifyouhavethe.NETFrameworkSDKinstalled,butnotVisualStudio
.NET,dothisbyclickingStart,Programs,Accessories,Command


Prompt.Youmustthenaddthelocationofthe.NETFramework
compilerstoyourPATHenvironmentvariable.Thesearefoundinthe
windowsfolder\Microsoft.NET\Framework\versionfolder.Forexample,
toupdatethePATHvariableonaWindowsXPsystem,enterthe
following:
setpath=%path%;C:\Windows\Microsoft.NET\Framework\v1.0.3705

(TheWindowsdirectoryisnamedWINNTonWindows2000systems
andonWindowsXPsystemsthathavebeenupgradedfromWindows
2000.Also,thefinalversionnumberoftheinstalled.NETFramework
maybedifferentthanthisone.)
2. AttheCommandPrompt,gotothefolderinwhichyou'veinstalledthe
samples.Forexample,ifyou'veinstalledthesamplesat
C:\MCSDWebApps(recommended),enterthefollowing:
C:\>cdMCSDWebApps
C:\MCSDWebApps>

3. ExecutethescriptthatconfiguresIISsothatallthesamplesareavailable
fromyourWebserver.Youmustenterthedirectoryinwhichyouinstalled
thesamples(thecurrentdirectory)asaparameteronthecommandline:

D:\MCSDWebApps>makeVirtualDirectories
D:\MCSDWebApps

TheeBook
TheCD-ROMalsoincludesanelectronicversionofthebookthatyoucanview
usingaHypertextMarkupLanguage(HTML)browser.

TousetheeBook
1. InserttheSupplementalCourseMaterialsCD-ROMintoyourCD-ROM
drive.
IfAutoRunisdisabledonyourmachine,refertotheReadme.txt
fileontheCD-ROM.


2. ClickTrainingKiteBookontheuserinterfacemenuandfollowthe
prompts.

YoumusthavetheSupplementalCourseMaterialsCD-ROM
insertedinyourCD-ROMdrivetoruntheeBook.

SampleExamQuestions
Toinstallthesampleexamquestionstoyourharddiskdrive
1. InserttheSupplementalCourseMaterialsCD-ROMintoyourCD-ROM
drive.
IfAutoRunisdisabledonyourmachine,refertotheReadme.txt
fileontheCD-ROM.
2. ClickSampleExamQuestionsontheuserinterfacemenuandthenselect
theexercisefileyouwanttoview.

TheMicrosoftCertifiedProfessional

Program
TheMicrosoftCertifiedProfessional(MCP)programprovidesthebestmethod
toproveyourcommandofcurrentMicrosoftproductsandtechnologies.
Microsoft,anindustryleaderincertification,isontheforefrontoftesting
methodology.Ourexamsandcorrespondingcertificationsaredevelopedto
validateyourmasteryofcriticalcompetenciesasyoudesignanddevelop,or
implementandsupport,solutionswithMicrosoftproductsandtechnologies.
ComputerprofessionalswhobecomeMicrosoftcertifiedarerecognizedas
expertsandaresoughtafterindustry-wide.
TheMicrosoftCertifiedProfessionalprogramoffersmultiplecertifications,
basedonspecificareasoftechnicalexpertise,including:


MicrosoftCertifiedApplicationDeveloper(MCAD)forMicrosoft
.NET.Qualifiedtodevelopandmaintaindepartment-levelapplications,
components,Webordesktopclients,orback-enddataservices.
MicrosoftCertifiedSolutionDeveloper(MCSD).Qualifiedtodesignand
developcustombusinesssolutionswithMicrosoftdevelopmenttools,
technologies,andplatformsandMicrosoftWindowsarchitecture.
MicrosoftCertifiedProfessional(MCP).Demonstratedin-depthknowledgeof
atleastoneMicrosoftWindowsoperatingsystemorarchitecturallysignificant
platform.AnMCPisqualifiedtoimplementaMicrosoftproductortechnology
aspartofabusinesssolutionforanorganization.
MicrosoftCertifiedSystemsEngineer(MCSE)onWindows2000.Qualified
toeffectivelyanalyzethebusinessrequirementsanddesignandimplementthe
infrastructureforbusinesssolutionsbasedontheMicrosoftWindows2000
platformandMicrosoft.NETEnterpriseServers.
MicrosoftCertifiedSystemsAdministrator(MCSA)onMicrosoftWindows
2000.Individualswhoimplement,manage,andtroubleshootexistingnetwork
andsystemenvironmentsbasedontheMicrosoftWindows2000andWindows

.NETServeroperatingsystems.
MicrosoftCertifiedDatabaseAdministrator(MCDBA)onMicrosoftSQL
Server2000.Individualswhoderivephysicaldatabasedesigns,develop
logicaldatamodels,createphysicaldatabases,createdataservicesbyusing
Transact-SQL,manageandmaintaindatabases,configureandmanagesecurity,
monitorandoptimizedatabases,andinstallandconfigureMicrosoftSQL
Server.
MicrosoftCertifiedTrainer(MCT).Instructionallyandtechnicallyqualifiedto
deliverMicrosoftOfficialCurriculumthroughaMicrosoftCertifiedTechnical
EducationCenter(CTEC).

MicrosoftCertificationBenefits
Microsoftcertification,oneofthemostcomprehensivecertificationprograms
availableforassessingandmaintainingsoftware-relatedskills,isavaluable
measureofanindividual'sknowledgeandexpertise.Microsoftcertificationis
awardedtoindividualswhohavesuccessfullydemonstratedtheirabilityto
performspecifictasksandimplementsolutionswithMicrosoftproducts.Not
onlydoesthisprovideanobjectivemeasureforemployerstoconsider,italso


providesguidanceforwhatanindividualshouldknowtobeproficient.Andas
withanyskills-assessmentandbenchmarkingmeasure,certificationbringsa
varietyofbenefits:totheindividual,andtoemployersandorganizations.

MicrosoftCertificationBenefitsforIndividuals
AsaMicrosoftCertifiedProfessional,youreceivemanybenefits:
IndustryrecognitionofyourknowledgeandproficiencywithMicrosoft
productsandtechnologies.
AMicrosoftDeveloperNetworksubscription.MCPsreceiverebatesor
discountsonaone-yearsubscriptiontotheMicrosoftDeveloperNetwork

(msdn.microsoft.com/subscriptions/)duringthefirstyearofcertification.
(Fulfillmentdetailswillvary,dependingonyourlocation;pleaseseeyour
WelcomeKit.)
AccesstotechnicalandproductinformationdirectfromMicrosoftthrougha
securedareaoftheMCPWebsite(goto
/>Accesstoexclusivediscountsonproductsandservicesfromselected
companies.Individualswhoarecurrentlycertifiedcanlearnmoreabout
exclusivediscountsbyvisitingtheMCPsecuredWebsite(goto
andselectthe“Other
Benefits”link).
MCPlogo,certificate,transcript,walletcard,andlapelpintoidentifyyouasa
MicrosoftCertifiedProfessional(MCP)tocolleaguesandclients.Electronic
filesoflogosandtranscriptmaybedownloadedfromtheMCPsecuredWeb
site(gotoupon
certification.
InvitationstoMicrosoftconferences,technicaltrainingsessions,andspecial
events.
FreeaccesstoMicrosoftCertifiedProfessionalMagazineOnline,acareerand
professionaldevelopmentmagazine.SecuredcontentontheMicrosoft
CertifiedProfessionalMagazineOnlineWebsiteincludesthecurrentissue
(availableonlytoMCPs),additionalonline-onlycontentandcolumns,an
MCP-onlydatabase,andregularchatswithMicrosoftandothertechnical
experts.


DiscountonmembershiptoPASS(forMCPsonly),theProfessional
AssociationforSQLServer.Inadditiontoplayingakeyroleintheonly
worldwide,user-runSQLServerusergroupendorsedbyMicrosoft,members
enjoyuniqueaccesstoaworldofeducationalopportunities(goto
/>AnadditionalbenefitisreceivedbyMicrosoftCertifiedSystemEngineers

(MCSEs):
A50-percentrebateordiscountofftheestimatedretailpriceofaone-year
subscriptiontoTechNetorTechNetPlusduringthefirstyearofcertification.
(Fulfillmentdetailswillvary,dependingonyourlocation.Pleaseseeyour
WelcomeKit.)Inaddition,about95percentoftheCD-ROMcontentis
availablefreeonlineattheTechNetWebsite
( />AnadditionalbenefitisreceivedbyMicrosoftCertifiedSystemDatabase
Administrators(MCDBAs):
A50-percentrebateordiscountofftheestimatedretailpriceofaone-year
subscriptiontoTechNetorTechNetPlusduringthefirstyearofcertification.
(Fulfillmentdetailswillvary,dependingonyourlocation.Pleaseseeyour
WelcomeKit.)Inaddition,about95percentoftheCD-ROMcontentis
availablefreeonlineattheTechNetWebsite
( />Aone-yearsubscriptiontoSQLServerMagazine.Writtenbyindustryexperts,
themagazinecontainstechnicalandhow-totipsandadvice—amustfor
anyoneworkingwithSQLServer.
AlistofbenefitsforMicrosoftCertifiedTrainers(MCTs)canbefoundat
/>
MicrosoftCertificationBenefitsforEmployersand
Organizations
Throughcertification,computerprofessionalscanmaximizethereturnon
investmentinMicrosofttechnology.ResearchshowsthatMicrosoftcertification
providesorganizationswith:


Excellentreturnontrainingandcertificationinvestmentsbyprovidinga
standardmethodofdeterminingtrainingneedsandmeasuringresults.
Increasedcustomersatisfactionanddecreasedsupportcoststhroughimproved
service,increasedproductivity,andgreatertechnicalself-sufficiency.
Reliablebenchmarkforhiring,promoting,andcareerplanning.

Recognitionandrewardsforproductiveemployeesbyvalidatingtheir
expertise.
Retrainingoptionsforexistingemployeessotheycanworkeffectivelywith
newtechnologies.
Assuranceofqualitywhenoutsourcingcomputerservices.

RequirementsforBecomingaMicrosoft
CertifiedProfessional
Thecertificationrequirementsdifferforeachcertificationandarespecifictothe
productsandjobfunctionsaddressedbythecertification.
TobecomeaMicrosoftCertifiedProfessional,youmustpassrigorous
certificationexamsthatprovideavalidandreliablemeasureoftechnical
proficiencyandexpertise.Theseexamsaredesignedtotestyourexpertiseand
abilitytoperformaroleortaskwithaproduct,andaredevelopedwiththeinput
ofprofessionalsintheindustry.QuestionsintheexamsreflecthowMicrosoft
productsareusedinactualorganizations,givingthem“real-world”relevance.
MicrosoftCertifiedProductcandidatesarerequiredtopassoneoperating
systemexam.CandidatesmaypassadditionalMicrosoftcertificationexamsto
furtherqualifytheirskillswithotherMicrosoftproducts,developmenttools,or
desktopapplications.
MicrosoftCertifiedSystemsEngineersarerequiredtopassfivecoreexams
andtwoelectiveexams.
MicrosoftCertifiedSystemsAdministratorsarerequiredtopassthreecore
examsandoneelectiveexamthatprovideavalidandreliablemeasureof
technicalproficiencyandexpertise.
MicrosoftCertifiedDatabaseAdministratorsarerequiredtopassthreecore
examsandoneelectiveexamthatmeasurestechnicalproficiencyand


expertise.

MicrosoftCertifiedSolutionDevelopersarerequiredtopassthreecore
MicrosoftWindowsoperatingsystemtechnologyexamsandoneBackOffice
technologyelectiveexam.
MicrosoftCertifiedTrainersarerequiredtomeetinstructionalandtechnical
requirementsspecifictoeachMicrosoftOfficialCurriculumcoursetheyare
certifiedtodeliver.TheMCTprogramrequiresongoingtrainingtomeetthe
requirementsfortheannualrenewalofcertification.Formoreinformation
aboutbecomingaMicrosoftCertifiedTrainer,visit
orcontactaregionalservice
centernearyou.

TechnicalTrainingforComputer
Professionals
Technicaltrainingisavailableinavarietyofways,withinstructor-ledclasses,
onlineinstruction,orself-pacedtrainingavailableatthousandsoflocations
worldwide.

Self-PacedTraining
Formotivatedlearnerswhoarereadyforthechallenge,self-pacedinstructionis
themostflexible,cost-effectivewaytoincreaseyourknowledgeandskills.
Afull-lineofself-pacedprintandcomputer-basedtrainingmaterialsisavailable
directfromthesource—MicrosoftPress.MicrosoftOfficialCurriculum
coursewarekitsfromMicrosoftPressaredesignedforadvancedcomputer
systemprofessionalsandareavailablefromMicrosoftPressandtheMicrosoft
DeveloperDivision.Self-pacedtrainingkitsfromMicrosoftPressfeatureprintbasedinstructionalmaterials,alongwithCD-ROM-basedproductsoftware,
multimediapresentations,labexercises,andpracticefiles.TheMasteringSeries
providesin-depth,interactivetrainingonCD-ROMforexperienceddevelopers.
They'rebothgreatwaystoprepareforMicrosoftCertifiedProfessional(MCP)
exams.


OnlineTraining


Foramoreflexiblealternativetoinstructor-ledclasses,turntoonlineinstruction.
It'sasnearastheInternetandit'sreadywheneveryouare.Learnatyourown
paceandonyourownscheduleinavirtualclassroom,oftenwitheasyaccessto
anonlineinstructor.Withouteverleavingyourdesk,youcangaintheexpertise
youneed.OnlineinstructioncoversavarietyofMicrosoftproductsand
technologies.ItincludesoptionsrangingfromMicrosoftOfficialCurriculumto
choicesavailablenowhereelse.It'strainingondemand,withaccesstolearning
resources24hoursaday.OnlinetrainingisavailablethroughMicrosoft
CertifiedTechnicalEducationCenters.

MicrosoftCertifiedTechnicalEducationCenters
MicrosoftCertifiedTechnicalEducationCenters(CTECs)arethebestsourcefor
instructor-ledtrainingthatcanhelpyoupreparetobecomeaMicrosoftCertified
Professional.TheMicrosoftCTECprogramisaworldwidenetworkofqualified
technicaltrainingorganizationsthatprovideauthorizeddeliveryofMicrosoft
OfficialCurriculumcoursesbyMicrosoftCertifiedTrainerstocomputer
professionals.
ForalistingofCTEClocationsintheUnitedStatesandCanada,visittheWeb
siteat/"> />
TechnicalSupport
Everyefforthasbeenmadetoensuretheaccuracyofthisbookandthecontents
ofthecompaniondisc.Ifyouhavecomments,questions,orideasregardingthis
bookorthecompaniondisc,pleasesendthemtoMicrosoftPressusingeitherof
thefollowingmethods:
Email:




Postal
Mail:

MicrosoftPressAttn:MCAD/MCSDTrainingKit:DevelopingWeb
ApplicationswithMicrosoftVisualBasic.NETandVisualC#.NET
EditorOneMicrosoftWay
Redmond,WA98052-6399

TheMicrosoftPressWebsite( />providescorrectionsforbooks.Pleasenotethatproductsupportisnotoffered


×