Tải bản đầy đủ (.pdf) (1,086 trang)

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

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 (19.39 MB, 1,086 trang )

Copyright©2003byMicrosoftCorporation


PUBLISHEDBY
MicrosoftPress
ADivisionofMicrosoftCorporation
OneMicrosoftWay
Redmond,Washington98052-6399
Copyright©2003byMicrosoftCorporation

Allrightsreserved.Nopartofthecontentsofthisbookmaybereproduced
formorbyanymeanswithoutthewrittenpermissionofthepublisher.
LibraryofCongressCataloging-in-PublicationDatapending.
PrintedandboundintheUnitedStatesofAmerica.
123456789QWT876543
DistributedinCanadabyH.B.FennandCompanyLtd.
ACIPcataloguerecordforthisbookisavailablefromtheBritishLibrary.

MicrosoftPressbooksareavailablethroughbooksellersanddistributorswo
informationaboutinternationaleditions,contactyourlocalMicrosoftCorpo
contactMicrosoftPressInternationaldirectlyatfax(425)936-7329.Visito
www.microsoft.com/mspress.Sendcommentsto

ActiveX,BackOffice,FrontPage,IntelliSense,JScript,Microsoft,MicrosoftP
VisualC#,VisualJ#,VisualStudio,Win32,Windows,andWindowsNTare
trademarksortrademarksofMicrosoftCorporationintheUnitedStatesan
Otherproductandcompanynamesmentionedhereinmaybethetradema
owners.


Theexamplecompanies,organizations,products,domainnames,e-maila


people,places,andeventsdepictedhereinarefictitious.Noassociationwit
company,organization,product,domainname,e-mailaddress,logo,perso
eventisintendedorshouldbeinferred.
AcquisitionsEditor:KathyHarding
ProjectEditor:AileenWrothwell
TechnicalEditor:JackBeaudry
CopyEditor:JenniferHarris
GameDevelopment:MichelPahud
BodyPartNo.X09-46540


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.Programmingisaconceptualskillthatrequires
hands-onpracticeaswellasfamiliaritywithmanyfacts.Thistrainingkit
providesthatpracticeintheformoflabsattheendofeachchapter.Inorderto
bepreparedfortheMicrosoftCertifiedProfessionalExam70-305or70-315you
mustcompletetheselabs.Insomecasesthiswillrequireuseofadditional
materials–inparticulartheVisualStudioonlineHelp.
NOTEFormoreinformationaboutbecomingaMicrosoftCertified
ApplicationDeveloper(MCAD)oraMicrosoftCertifiedSolution

Developer(MCSD),seethesectiontitled“TheMicrosoftCertified
ProfessionalProgram”laterinthisintroduction.
The“GettingStarted”sectionofthisintroductionprovidesimportantsetup
instructionsthatdescribethehardwareandsoftwarerequirementstocomplete
theexercisesinthiscourse.Italsoprovidesinformationaboutthenetworking
configurationnecessarytocompletesomeofthehands-onexercises.Read
throughthissectionthoroughlybeforeyoustartthelessons.

IntendedAudience
Thisbookwascreatedforsoftwaredeveloperswhoneedtodesign,plan,
implementandsupportWebapplicationsorwhoplantotaketherelated
MicrosoftCertifiedProfessionalexams:


DevelopingandImplementingWebApplicationswithMicrosoft
VisualBasic.NETandMicrosoftVisualStudio.NET(Exam70305).
DevelopingandImplementingWebApplicationswithMicrosoft
VisualC#.NETandMicrosoftVisualStudio.NET(Exam70-315).

Prerequisites
Thiscourserequiresthatstudentsmeettheprerequisitesthatfollow.
BeabletocreateWindowsapplicationsusingMicrosoftVisualStudio
.NETineithertheVisualBasic.NETorVisualC#.NETprogramming
language.
Haveabasicunderstandingoftheobject-orientedprogramming
conceptsincludingclasses,properties,methods,andevents.
UnderstandthefundamentalelementsintheHypertextMarkup
Language(HTML)usedtoauthorWebcontent.
UnderstandhowWebcontentisstoredandaccessedovertheInternet.
ThisincludesbeingabletoexplaintherolesofWebservers,Internet

protocols,andWebclients(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.
MostlessonsinthistrainingkitincludesampleWebformsandother
filesthatdemonstratethecodeshowninthetrainingkit.Thesesamples
areorganizedintotwoVisualStudiosolutionsnamed
MCSDWebAppsVB,fortheVisualBasic.NETsamples,and
MCSDWebAppsCS,fortheVisualC#samples.
Completedlabs.
Eachchapterinthistrainingkitconcludeswithalabcontainingaseries
ofexercisesthatreinforcetheskillsyoulearned.Completedversionsof
theseapplicationsareincludedinthechapterfoldersofthe
MCSDWebAppsVBandMCSDWebAppsCSsolutionssothatyoucan
compareyourresults.Youcanalsousethesecompletedapplicationsas
areferenceifyougetstuckwhilecompletinganexercise.

Requiredfiles.
Practicefiles,suchassampledatabases,thatarerequiredtoperformthe
hands-onprocedures.Youshouldusethesefileswhenindicatedinthe
exercises.
Sampleexamquestions.
Topracticetakingacertificationexam,youcanusethesampleexam
installedbytheCD-ROM.Thesamplequestionshelpyouassessyour
understandingofthematerialspresentedinthisbook.

AbouttheDVD
TheDVDcontainsa60-dayevaluationeditionofMicrosoftVisualStudio.NET
Professional.
CAUTION


The60-dayEvaluationEditionprovidedwiththistrainingisnotthe
fullretailproductandisprovidedonlyforthepurposesoftrainingand
evaluation.MicrosoftTechnicalSupportdoesnotsupportthis
evaluationedition.
ForadditionalsupportinformationregardingthisbookandtheCD-ROMand
DVD(includinganswerstocommonlyaskedquestionsaboutinstallationand
use),visittheMicrosoftPressTechnicalSupportWebsiteat
Youcanalsoemail
,orsendalettertoMicrosoftPress,Attn:Microsoft
PressTechnicalSupport,OneMicrosoftWay,Redmond,WA98502-6399.

FeaturesofThisBook
Eachchaptercontainssectionsthataredesignedtohelpyougetthemost
educationalvaluefromthechapter.
Eachchapteropenswitha“BeforeYouBegin”section,whichprepares

youforcompletingthechapter.
Thechaptersarethendividedintolessons.Eachlessoncontainsthe
referenceandproceduralinformationusedforaspecificskill.
The“Summary”sectionidentifiesthekeyconceptsfromthelesson.
The“Lab”sectionprovideshands-onexercisesthatreinforceeachof
theskillstaughtineachofthechapterlessons.Theexercisesgiveyou
anopportunitytousetheskillsbeingpresentedorexplorethepartof
theapplicationbeingdescribed.Whereverpossible,theexercisesina
labbuildoneachothertocreateacompleteapplicationbytheendof
thatlab.
Theexercisesofferstep-by-stepproceduresthatareidentifiedwitha
bulletsymbolliketheonetotheleftofthisparagraph.
Attheendofeachchapteristhe“Review”sectionthatyoucanuseto
testwhatyouhavelearned.
Theappendix,“QuestionsandAnswers,”containsallofthequestionsaskedin
eachchapterreviewandthecorrespondinganswers.


Notes
SeveraltypesofNotesappearthroughoutthelessons.
NotesmarkedTipcontainexplanationsofpossibleresultsoralternative
methodsforperformingtasks.
NotesmarkedImportantcontaininformationthatisessentialto
completingatask.
NotesmarkedNotecontainsupplementalinformation.
NotesmarkedCautioncontainwarningsaboutpossiblelossofdata.

NotationalConventions
Thefollowingnotationalconventionsareusedthroughoutthisbook.
Charactersorcommandsthatyoutypeappearinboldtype.Boldtypeis

alsousedforglossarytermsthefirsttimetheyaredefinedintext.
Italicinsyntaxstatementsindicatesplaceholdersforvariable
information.Italicisalsousedforbooktitles,elementsfromthe.NET
Framework,andprogramminglanguagekeywords.
Namesoffilesandfoldersappearininitialcapitalletters,exceptwhen
youaretotypethemdirectly.Unlessotherwiseindicated,youcanuse
lowercaseletterswhenyoutypeafilenameinadialogboxorata
commandprompt.
Filenameextensions,whentheyappearwithoutafilename,arein
lowercaseletters.
Acronymsappearinalluppercaseletters.
Monospacetyperepresentscodesamples,examplesofscreentext,or
entriesthatyoumighttypeatacommandpromptorininitialization
files.
Iconsrepresentspecificsectionsinthebookasfollows:
Icon

Represents


Supplementalcoursematerials.Youwillfindthesematerials
ontheSupplementalCourseMaterialsCD-ROM.
Ahands-onexercise.Youshouldperformtheexerciseto
giveyourselfanopportunitytousetheskillsbeingpresented
inthelesson.

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”sectioncontainsanoverviewandintroduces
thecomponentsofthistrainingkit.Readthissectionthoroughlytoget
thegreatesteducationalvaluefromthistrainingkitandtoplanwhich
lessonsyouwillcomplete.
Chapter1,“IntroductiontoWebProgramming,”introducesyoutothe
conceptsandtermsusedthroughoutthisbook,includinghowWeb
applicationswork,thepartsofaWebapplication,howthe.NET
Frameworkisorganized,andhowtousetheVisualStudio
programmingenvironment.Thesectionsinthischapterareintendedto
provideahigh-leveloverviewofconceptsthatareexplainedingreater
detailinsubsequentchapters.
Chapter2,“CreatingWebFormsApplications,”teacheshowtocreatea
WebapplicationusingVisualStudio.NETandASP.NET.Youlearn
howtostartanewproject,createabasicuserinterface,writecodeto
respondtoevents,andpreservedatawithinyourapplication.Because
ASP.NETisintegratedwithMicrosoftInternetInformationServices


(IIS),youalsolearnaboutIISandhowtouseittoorganizeyourWeb
application.
Chapter3,“WorkingwithWebObjects,”explainscreatingand
organizingobjectsinVisualStudio.NET,usingtheobjectsprovidedby
ASP.NET,andsavingobjectsanddatabetweenrequeststoWebforms.
VisualBasic,VisualC#,andASP.NETarebasedonacommon

framework,sotheobject-orientedprogrammingtechniquesyoulearnin
thischapterapplythroughallaspectsof.NETprogramming.
Chapter4,“CreatingaUserInterface,”demonstrateshowtouse
ASP.NETcontrolstocreateauserinterfaceforamulti-pageWebforms
application.ThischapterteachesyouaboutdifferentstylesofWeb
forms,howtochoosecontrolsbasedonthetasksyouwanttoperform,
howtovalidatedatafields,andhowtonavigatebetweentheWebforms
inyourapplication.
Chapter5,“StoringandRetrievingDatawithADO.NET,”showshow
touseADO.NETtoaccessandmodifydatastoredinSQL,OLE,and
OracledatabasesfromWebforms.Youlearnaboutthedatatools
includedwithVisualStudioandhowtousethemtocreateconnections
to,getrecordsfrom,andperformcommandsondatabases.Youwillalso
learnhowtodisplaydataonaWebformusingeitherdatabindingor
code.Finally,youlearnhowtousetransactionstomaintaintheintegrity
ofadatabase.
Chapter6,“CatchingandCorrectingErrors,”explainshowtodealwith
problemsthatmayoccurinyourapplicationduetoexternal
circumstances.Thischapterhelpsyouidentify,anticipate,andhandle
thesetypesofproblemseffectivelywithinyourapplication.
Chapter7,“AdvancedWebFormsProgramming,”teacheshowto
performadvancedprogrammingtasksthatdon’tfitneatlyintoanyother
category.AlthoughyoucansuccessfullycreateWebapplications
withoutknowingthetopicscoveredinthischapter,thelessonsfound
hereareanimportantpartofmainstreamWebprogrammingandthey
helpcompleteyourskillset.
Chapter8,“MaintainingSecurity,”covershowtocontrolaccesstoyour
WebapplicationusingthethreedifferenttechniquesthatASP.NET
providesforidentifyingandauthorizingusers.Youalsolearnhowto



securedatatransmittedacrosstheInternetsothatitcannotbereadby
others.
Chapter9,“BuildingandDeployingWebApplications,”describeshow
topublishyourcompletedWebapplicationsonaWebserverforgeneral
use.Youalsolearnhowtomonitorandmaintaintheapplicationonceit
isinusesothatitcontinuestoperformwellasthedemandsofyour
userschange.
Chapter10,“TestingWebApplications,”teacheshowtosystematically
testyourWebapplicationduringdevelopment.Youlearnhowtoplan,
create,run,andcorrectproblemsfoundbytests.
Chapter11,“CreatingCustomWebControls,”demonstrateshowto
createyourown,customuser-interfacecomponents.Thischapter
explainsthedifferenttypesofcontrolsyoucancreate,describesthe
relativeadvantagesofeach,andshowsyouhowtocreateeachdifferent
typeofcontrol.
Chapter12,“OptimizingWebApplicationswithCaching,”showshow
tostoreWebforms,partsofWebforms,andapplicationdataincacheto
speedapplicationresponsesandreducetheamountofprocessingthe
servermustperform.Thischapteralsodemonstrateshowtomonitor
cacheperformancetodeterminewhetherornotyouareusingcaching
effectively.
Chapter13,“FormattingWebApplicationOutput,”teachesyouhowto
formattheuserinterfaceofaWebapplicationusingcascadingstyle
sheets(CSS)andExtensibleStylesheetLanguageTransformations
(XSLT).Thischapterexplainsthebestusesforeachformatting
techniqueandtellsyouhowtocombinethetwotechniques.
Chapter14,“ProvidingHelp,”discussesthedifferentwaysthatyoucan
displayuserassistance(Help)fromwithinaWebapplication.Youlearn
howtousetheHTMLHelpWorkshoptocreatecompiledHelpfiles,

andhowtodisplaythosefilesfromaWebapplicationinteractively.
Chapter15,“GlobalizingWebApplications,”explainshowtodetecta
user’scultureandcreateappropriateresponses,rangingfromredirecting
theusertoaseparate,localizedWebapplication,tohandingcultural
differenceswithincodeanddisplayingalocalizeduserinterface.


Theappendix,“QuestionsandAnswers,”listsallofthereview
questionsfromthebook,showingthepagenumberforeachquestion
andthesuggestedanswer.
Theglossaryprovidesdefinitionsformanyofthetermsandconcepts
presentedinthistrainingkit.

FindingtheBestStartingPointforYou
Becausethisbookisself-paced,youcanskipsomelessonsandrevisitthem
later.Usethefollowingtabletofindthebeststartingpointforyou:
Ifyou

Followthislearningpath

Arepreparingtotakethe
MicrosoftCertified
Professionalexam70-305or
70-315

Readthe“GettingStarted”section.Then
workthroughChapters1-4.Workthroughthe
remainingchaptersinanyorder.

Wanttoreviewinformation

aboutspecifictopicsfromthe
exam

Usethe“WheretoFindSpecificSkillsinThis
Book”sectionthatfollowsthistable.

WheretoFindSpecificSkillsinThisBook
ThefollowingtablesprovidealistoftheskillsmeasuredoncertificationExam
70-305,DevelopingandImplementingWebApplicationswithMicrosoft
VisualBasic.NETandMicrosoftVisualStudio.NET,orExam70-315,
DevelopingandImplementingWebApplicationswithMicrosoftVisualC#
.NETandMicrosoftVisualStudio.NET.Thetableprovidestheskill,and
whereinthisbookyouwillfindthelessonrelatingtothatskill.
NOTE
Examskillsaresubjecttochangewithoutpriornoticeandatthesole
discretionofMicrosoft.
Table~missing_chapter_num~-1.CreatingUserServices
SkillBeingMeasured
LocationinBook


CreateASP.NETpages:

Chapter2,Lesson1

Addandsetdirectiveson
ASP.NETpages

Chapter1,Lesson3;Chapter6,
Lessons2and3;Chapter11,

Lessons1and2;andChapter
12,Lesson1

Separateuserinterface
resourcesfrombusiness
logic

Chapter3,Lesson1

AddWebservercontrols,HTML
servercontrols,usercontrols,and
HTMLcodetoASP.NETpages:

Chapter4,Lessons1and2

Setpropertiesoncontrols

Chapter4,Lesson1

Loadcontrolsdynamically

Chapter4,Lesson1

Applytemplates

Chapter4,Lesson1,and
Chapter5,Lesson2

SetstylesonASP.NET
pagesbyusingcascading

stylesheets

Chapter13,Lesson1

Instantiateandinvokean
ActiveXcontrol

Chapter14,Lesson2

Implementnavigationfortheuser
interface:
Managetheviewstate

Chapter4,Lesson3;Chapter2,Lesson
2;andChapter3,Lesson3
Chapter3,Lesson3


Managedataduringpostbackevents

Chapter3,Lesson3

Usesessionstateto
managedataacrosspages

Chapter3,Lesson3

Validateuserinput:
Validatenon-Latinuser
input

Implementerrorhandlinginthe
userinterface:

Chapter4,Lesson2
Chapter15,Lesson3

Chapter6,Lessons1,2,and3

Configurecustomerror
pages

Chapter6,Lesson2

ImplementGlobal.asax,
application,page-level,
andpageeventerror
handling

Chapter6,Lesson2

Implementonlineuserassistance

Chapter14,Lessons1,2,and3

Incorporateexistingcodeinto
ASP.NETpages

Chapter1,Lesson2;Chapter7,Lessons
2and3


Displayandupdatedata:

Chapter4,Lesson1;Chapter5,Lesson2

Transformandfilterdata

Chapter5,Lessons1and2;
Chapter13,Lesson2

Binddatatotheuser
interface

Chapter4,Lesson1;Chapter5,
Lesson2


Usecontrolstodisplay
data

Chapter4,Lesson1

InstantiateandinvokeWebservices Chapter7,Lesson5
orcomponents:
Instantiateandinvokea
Webservice

Chapter7,Lesson5

Instantiateandinvokea
COMorCOM+

component

Chapter7,Lesson3

Instantiateandinvokea
.NETcomponent

Chapter3,Lesson1;Chapter7,
Lesson3

Implementglobalization:

Chapter15,Lessons1,2,and3

Implementlocalizability
fortheuserinterface

Chapter15,Lesson2

Convertexistingencodings

Chapter15,Lesson3

Implementright-to-leftand
left-to-rightmirroring

Chapter15,Lesson1

Prepareculture-specific
formatting


Chapter15,Lesson1

Handleevents:
Createeventhandlers

Chapter2,Lesson2
Chapter2,Lesson2;Chapter3,


Lesson1
Raiseevents

Implementaccessibilityfeatures

Chapter3,Lesson1;Chapter
11,Lesson2
Chapter13,Lesson1

Useandeditintrinsicobjects,
Chapter3,Lesson2
includingresponse,request,session,
server,andapplication:
Retrievevaluesfromthe
propertiesofintrinsic
objects
Setvaluesontheproperties
ofintrinsicobjects
Useintrinsicobjectsto
performoperations

Table~missing_chapter_num~-2.CreatingandManagingComponentsand
.NETAssemblies
SkillBeingMeasured
LocationinBook
Createandmodifya.NETassembly:

Chapter9,Lesson1,andChapter
11,Lesson3

Createandimplementsatellite
assemblies

Chapter15,Lesson2

Createresource-only
assemblies

Chapter15,Lesson2

Table~missing_chapter_num~-3.ConsumingandManipulatingData


SkillBeingMeasured

Locationin
Book

AccessandmanipulatedatafromaMicrosoftSQLServer
databasebycreatingandusingadhocqueriesandstored
procedures


Chapter5,
Lessons1,2,and
3

Accessandmanipulatedatafromadatastore.Datastores
includerelationaldatabases,XMLdocuments,andflat
files.MethodsincludeXMLtechniqueandADO.NET.

Chapter5,
Lessons1,2,and
3;Chapter7,
Lesson1

Handledataerrors

Chapter6,
Lesson1
Table~missing_chapter_num~-4.TestingandDebugging
SkillBeingMeasured
LocationinBook
Createaunittestplan

Chapter10,Lesson
1

Implementtracing:
Addtracelistenersandtraceswitchestoan
application


Chapter10,
Lesson3

Displaytraceoutput

Chapter6,
Lesson3

Debug,rework,andresolvedefectsincode:
Configurethedebuggingenvironment

Chapter10,
Lesson3

Createandapplydebuggingcodeto
components,pages,andapplications

Chapter10,
Lesson1

Providemulticulturaltestdatatocomponents,

Chapter15,


pages,andapplications

Lesson2

Executetests


Chapter10,
Lesson2

Resolveerrorsandreworkcode

Chapter10,
Lesson3

Table~missing_chapter_num~-5.DeployingaWebApplication
SkillBeingMeasured
LocationinBook
PlanthedeploymentofaWebapplication:

Chapter9,Lesson
2

PlanthedeploymentofanapplicationtoaWeb
garden,aWebfarm,oracluster
DeployaWebapplication

Chapter9,
Lesson5
Chapter9,Lessons
2and3

Addassembliestotheglobalassemblycache

Chapter9,Lessons
2and3

Table~missing_chapter_num~-6.MaintainingandSupportingaWeb
Application
SkillBeingMeasured
LocationinBook
Optimizetheperformanceofa
Webapplication

Chapter9,Lesson4;Chapter12,Lessons1,
2,3,and4

Diagnoseandresolveerrors
Chapter9,Lesson4;Chapter6,Lesson3;
andissues
andChapter10,Lesson3
Table~missing_chapter_num~-7.ConfiguringandSecuringaWebApplication
SkillBeingMeasured
LocationinBook
ConfigureaWebapplication:
ModifytheWeb.configfile

Chapter9,Lesson1
Chapter9,


Lesson1;
Chapter8,
Lesson1;and
Chapter15,
Lesson3
ModifytheMachine.configfile


Chapter9,
Lesson1

Addandmodifyapplicationsettings

Chapter9,
Lesson1;
Chapter8,
Lesson1;and
Chapter15,
Lessons1and3

ConfiguresecurityforaWebapplication:

Selectandconfigureauthenticationtype.
AuthenticationtypesincludeWindows
Authentication,None,forms-based,
MicrosoftPassport,InternetInformation
Services(IIS)authentication,andcustom
authentication.

Chapter8,Lessons1,2,
3,4,and5
Chapter8,
Lesson1

Configureauthorization.Authorizationmethods
includefile-basedmethodsandURL-based
methods:


Chapter8,Lessons1,2,
3,and4

Configurerole-basedauthorization

Chapter8,
Lesson2

Implementimpersonation

Chapter8,
Lesson1


Configureandimplementcaching.Cachingtypes
includeoutput,fragment,anddata:

Chapter12,Lessons1,2,
and3

Useacacheobject

Chapter12,
Lesson3

Usecachedirectives

Chapter12,
Lessons1and2


Configureandimplementsessionstateinvarious
topologiessuchasaWebgardenandaWebfarm:
Usesessionstatewithinaprocess

Chapter3,
Lesson3

Usesessionstatewithsessionstateservice

Chapter9,
Lesson5

UsesessionstatewithMicrosoftSQL
server

Chapter9,
Lesson5

Installandconfigureserverservices:

Chapter2,Lesson1

InstallandconfigureaWebserver

Chapter2,
Lessons1and3;
Chapter6,
Lesson2;
Chapter8,

Lessons1and5;
andChapter9,
Lesson2

InstallandconfigureFrontPageServer

Chapter2,


Extensions

Lesson1

GettingStarted
Thisself-pacedtrainingkitcontainshands-onprocedurestohelpyoulearnabout
developingWebapplications.
Tocompletesomeoftheseprocedures,youmusthavetwonetworkedcomputers
orbeconnectedtoalargernetwork.Bothcomputersmustbecapableofrunning
MicrosoftWindowsXPProfessionalEdition,Windows2000,orlater.
CAUTION
Severalexercisesrequireyoutomakechangestoyourservers.This
mightcauseundesirableresultsifyouareconnectedtoalarger
network.Checkwithyournetworkadministratorbeforeattempting
theseexercises.

HardwareRequirements
Eachcomputermusthavethefollowingminimumconfiguration.Allhardware
shouldbeontheMicrosoftWindowsXPorMicrosoftWindows2000Hardware
CompatibilityList.
PentiumII–classprocessor,450megahertz(MHz)

160MBphysicalmemory,256MBrecommended
CD-ROMorDVDdrive,12xorfasterrecommended
NOTE
ADVDdriveisrequiredtoinstalltheVisualStudio.NET
ProfessionalEvaluationEditionsoftware.
3.5gigabytes(GB)oninstallationdrive,whichincludes500megabytes
(MB)onsystemdrive.
SuperVGA(800x600)orhigher-resolutionmonitorwith256colors.


MicrosoftMouseorcompatiblepointingdevice
Internetconnectionandnetworkingcard(56Kmodemistheminimum
acceptableInternetconnectionspeed,higherspeedconnectionis
recommended)

SoftwareRequirements
Thefollowingsoftwareisrequiredtocompletetheproceduresinthiscourse.
MicrosoftWindowsXPProfessionalEditionorWindows2000.
NOTE
Thedefaultinstallationconfigurationfortheseoperating
systemsincludestheMicrosoftInternetInformationServices
(IIS)softwarerequiredfordevelopingWebapplications.
MicrosoftVisualStudio.NETProfessionalEditionorVisualStudio
.NETEnterpriseDeveloper.ProfessionalEditionisrecommended,and
EnterpriseDeveloperEditionisideal.

SetupInstructions
Setupyourcomputeraccordingtothemanufacturer’sinstructions.

TheLessonFiles

ToinstallthelessonfilesandeBooktoyourharddiskdrive
1. InserttheSupplementalCourseMaterialsCD-ROMintoyourCDROMdrive.
NOTE
IfAutoRunisdisabledonyourmachine,refertothe
ReadmefileontheCD-ROM.
2. RuntheSetupprogramincludedontheCD-ROM.Setupwill
automaticallyinstallthelessonfiles,supportfiles,andeBookonyour


computer.
3. AfterSetupcompletes,itwilldisplayaStartpageinyourbrowser.
YoucanusetheStartpagetoviewthelessonfiles,eBook,Readme,
andadditionalinformation.
NOTE
Ifyouencounterproblemsinstallinganyportionofthis
trainingkit,seetheReadmeincludedontheCD-ROMfor
Troubleshootinginformationandadditionalinstructions.

TousetheeBook
YoucanviewtheeBookfromanumberoflocations:
FromtheStartpagedisplayedattheendofSetup.
FromlinkswithinthedefaultpagesoftheMCSDWebAppsVBand
MCSDWebAppsCSsolutionsinstalledbySetup.
FromtheWindowsStartmenuusingtheeBookiteminstalledinthe
MicrosoftPressprogramgroup.
FromtheWindowsExplorerbyopeningtheMCSDWebApps2.chmfile.

SampleExamQuestions
Toinstallthesampleexamquestionstoyourharddiskdrive
1. InserttheSupplementalCourseMaterialsCD-ROMintoyourCDROMdrive.

NOTE
IfAutoRunisdisabledonyourmachine,refertothe
Readme.txtfileontheCD-ROM.
2. ClickSampleExamQuestionsontheuserinterfacemenuandthen
selecttheexercisefileyouwanttoview.


TheMicrosoftCertifiedProfessionalProgram
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).
Qualifiedtodesignanddevelopcustombusinesssolutionswith
Microsoftdevelopmenttools,technologies,andplatformsand
MicrosoftWindowsarchitecture.
MicrosoftCertifiedProfessional(MCP).
Demonstratedin-depthknowledgeofatleastoneMicrosoftWindows
operatingsystemorarchitecturallysignificantplatform.AnMCPis
qualifiedtoimplementaMicrosoftproductortechnologyaspartofa

businesssolutionforanorganization.
MicrosoftCertifiedSystemsEngineer(MCSE)onWindows2000.
Qualifiedtoeffectivelyanalyzethebusinessrequirementsanddesign
andimplementtheinfrastructureforbusinesssolutionsbasedonthe
MicrosoftWindows2000platformandMicrosoft.NETEnterprise
Servers.
MicrosoftCertifiedSystemsAdministrator(MCSA)onMicrosoft


Windows2000.
Individualswhoimplement,manage,andtroubleshootexistingnetwork
andsystemenvironmentsbasedontheMicrosoftWindows2000and
Windows.NETServeroperatingsystems.
MicrosoftCertifiedDatabaseAdministrator(MCDBA)onMicrosoft
SQLServer2000.
Individualswhoderivephysicaldatabasedesigns,developlogicaldata
models,createphysicaldatabases,createdataservicesbyusing
Transact-SQL,manageandmaintaindatabases,configureandmanage
security,monitorandoptimizedatabases,andinstallandconfigure
MicrosoftSQLServer.
MicrosoftCertifiedTrainer(MCT).
InstructionallyandtechnicallyqualifiedtodeliverMicrosoftOfficial
CurriculumthroughaMicrosoftCertifiedTechnicalEducationCenter
(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


×