Tải bản đầy đủ - 0 (trang)
Microsoft ASP.NET Programming with Visual C# .NET Version 2003 Step by Step

Microsoft ASP.NET Programming with Visual C# .NET Version 2003 Step by Step

Tải bản đầy đủ - 0trang

MicrosoftPressbooksareavailablethroughbooksellersanddistributors

worldwide.Forfurtherinformationaboutinternationaleditions,contact

yourlocalMicrosoftCorporationofficeorcontactMicrosoftPress

Internationaldirectlyatfax(425)936-7329.VisitourWebsiteat

www.microsoft.com/mspress.Sendcommentsto

mspinput@microsoft.com.

ActiveDirectory,ActiveX,FrontPage,JScript,Microsoft,MicrosoftPress,

Outlook,VisualBasic,VisualC++,VisualC#,VisualFoxPro,Visual

InterDev,VisualJ++,VisualSourceSafe,VisualStudio,Windows,and

WindowsNTareeitherregisteredtrademarksortrademarksofMicrosoft

CorporationintheUnitedStatesand/orothercountries.Openwaveand

theOpenwavelogoaretrademarksofOpenwaveSystemsInc.Allrights

reserved.Otherproductandcompanynamesmentionedhereinmaybe

thetrademarksoftheirrespectiveowners.

Theexamplecompanies,organizations,products,domainnames,e-mail

addresses,logos,people,places,andeventsdepictedhereinare

fictitious.Noassociationwithanyrealcompany,organization,product,

domainname,e-mailaddress,logo,person,place,oreventisintended

orshouldbeinferred.

AcquisitionsEditor:AnneHamilton

ProjectEditor:LynnFinnel

BodyPartNo.X09-45931

Acknowledgments

Iwanttoexpressmythanksforthesupportandassistanceprovidedby

myprojecteditoratMicrosoftPress,LynnFinnel,aswellasforher

persistenceandperseveranceontheproject.Thanksalsototheediting

teamforcatchingmygoofsandhelpingmakemyworkthebestitcanbe.

MythanksespeciallytoAnneHamiltonforherongoingsupportformy

work.

Lastbutnotleast,Ithankmywife,Jennifer.Herlove,patience,and

supportmakemyworkpossibleandworthwhile.



G.AndrewDuthie

March,2003

G.AndrewDuthie

G.AndrewDuthieisthefounderandprincipalofGraymadEnterprises,

Inc.(http://www.graymad.com/),providingtrainingandconsultingin

MicrosoftWebdevelopmenttechnologies.Andrewhasbeendeveloping

multi-tierWebapplicationssincetheintroductionofActiveServerPages.

Hewroteaboutdevelopingscalablen-tierapplicationsinMicrosoftVisual

InterDev6.0EnterpriseDevelopersWorkshop,alsofromMicrosoftPress.

Andrewisafrequentspeakeratevents,includingSoftwareDevelopment,

theDev-Connectionsfamilyofconferences,MicrosoftDeveloperDays,

andVSLive!Healsospeaksat.NETusergroupsasamemberofthe

International.NETAssociation(INETA)SpeakersBureau

(http://www.ineta.org/).

InadditiontohisworkforGraymadEnterprises,Andrewenjoysspending

timewithhiswife,Jennifer,playingmusic,andsmokinghismeerschaum

pipe.YoucanreachAndrewbyemailatandrew@graymad.com.

ThemanuscriptforthisbookwaspreparedandsubmittedtoMicrosoft

Pressinelectronicform.PageswerecomposedbynSight,Inc.using

AdobeFrameMaker+SGMLforWindows,withtextinSabonanddisplay

typeinITCFranklinGothic.Composedpagesweredeliveredtothe

printeraselectronicpre-pressfiles.

Coverdesigner:GregHickman

InteriorGraphicDesigner:JamesD.Kramer

PrincipalCompositor:DonaldCowan

CopyEditor:LisaWehrle

TechnicalEditor:ChrisRusso

PrincipalProofreader:JenniferCarr



Indexer:JackLewis,J&JIndexing



Introduction



FindingYourBestStartingPoint

MicrosoftASP.NETProgrammingwithMicrosoftVisualC#.NET2003

StepbyStepisdesignedtoprovideacomprehensiveintroductionand

overviewofdevelopingWebapplicationswithASP.NET.Thegoalofthis

bookistohelpyoubecomecompetentatthebasicskillsnecessaryfor

creatingandusingASP.NETapplications.Tohelpyougetthereas

quicklyandeasilyaspossible,thisbookhasbeendividedintofourparts,

eachcomposedofoneormorechaptersrelatedtoaspecifictopic.Over

thecourseofthesepartsandchapters,youlllearnaboutthenew

Microsoft.NETdevelopmentplatformandthepartthatASP.NETplaysin

it.YoullalsolearntheskillsnecessarytotakeadvantageofASP.NET

WebForms,ServerControls,andXML-basedWebservices.

Dependingontheskillsandexperienceyoubringtothisbook,youmight

wanttostartwithaparticularpartofinteresttoyouorskipovercertain

partsentirely.Thefollowingtablecanhelpyoudecidewheretostart.

Ifyouare



Followthesesteps



New





1. Installthesamplefilesasdescribed

inInstallingtheSampleFilesonpage

xvii.



Toprogramming



2. Learnaboutthebackgroundofthe

Microsoft.NETFrameworkand

ASP.NETbyreadingChapters16.

TheneitherworkthroughPart3ifyou

wanttoknowmoreaboutthe

technologiesunderlyingASP.NETor

workthroughPart4ifyouwanttoget

straightintothecoding.

3. Workthroughtherestoftheparts

andchaptersbasedonyourinterest



inthevarioustopics.

Switching





1. Installthesamplefilesasdescribed

inInstallingtheSampleFilesonpage

xvii.

2. ReadorscanParts1and2ifyoure

interestedinthebackgroundof.NET

andASP.NET.



FromclassicASPor

similartechnologies



3. WorkthroughPart3forbasicWeb

Formsskillsaswellasanintroduction

tousingASP.NETServerControls

andaccessingdatawithADO.NET.

4. WorkthroughPart4foradditional

ASP.NETapplicationskills.



Referencing



Thisbookafter

workingthroughthe

chapters





1. Usetheindextolocateinformation

aboutspecifictopics,andusethe

tableofcontentstolocateinformation

aboutgeneraltopics.

2. ReadtheQuickReferenceattheend

ofeachchapterforabriefreviewof

themajortasksineachchapter.



Corrections,Comments,andHelp

Everyefforthasbeenmadetoensuretheaccuracyofthisbookandthe

contentsofthesamplefiles.MicrosoftPressprovidescorrectionsand

additionalcontentforitsbooksthroughtheWorldWideWebatthe

followingaddress:

http://www.microsoft.com/mspress/support



ToconnectdirectlytotheMicrosoftPressKnowledgeBaseandentera

queryaboutaquestionyoumayhave,visit:

http://www.microsoft.com/mspress/support/search.asp

Ifyouhaveproblems,comments,orideasregardingthisbookorthe

samplefiles,pleasesendthemtoMicrosoftPress.

Sende-mailto:

mspinput@microsoft.com

Orsendpostalmailto:

MicrosoftPress

Attn:DeveloperStepbyStepSeriesEditor

OneMicrosoftWay

Redmond,WA98052-6399

Pleasenotethatproductsupportisnotofferedthroughtheabove

addresses.ForhelpwithASP.NET,youcanconnecttoMicrosoft

TechnicalSupportontheWebatsupport.microsoft.com/directory,orfor

additionaldeveloperinformationaboutASP.NET,goto

www.microsoft.com/netandsearchonASPNET.



VisittheMicrosoftPressWorldWideWebSite

YouarealsoinvitedtovisittheMicrosoftPressWorldWideWebsiteat

thefollowinglocation:

http://www.microsoft.com/mspress

YoullfinddescriptionsforthecompletelineofMicrosoftPressbooks

(includingothersbyG.AndrewDuthie),informationaboutorderingtitles,

noticeofspecialfeaturesandevents,additionalcontentforMicrosoft

Pressbooks,andmuchmore.



InstallingtheSampleFiles

ThesamplecodeusedinthisbookisavailableonthebooksWebsiteat

http://www.microsoft.com/mspress/books/6724.asp.Todownloadthe

samplefiles,clicktheCompanionContentlinkintheMoreInformation

menuontherightsideoftheWebpage.ThiswillloadtheCompanion

Contentpage,whichincludesthelinkfordownloadingthesamplefiles.

Toinstallthesamplefiles,runtheexecutablefiledownloadedfromthe

linkandacceptthelicenseagreementthatispresented.

Bydefault,thefileswillbecopiedtothefolder

C:\MicrosoftPress\ASPNETSBS_CS.Thedestinationfolderwillalso

containareadme.htmfilethatyoullneedtorefertoforinstructionsin

settingupandusingthesamplefiles.



SystemRequirements

TousethesamplecodeprovidedattheWebsite,youllneedacomputer

withthefollowingconfiguration:

MicrosoftWindows2000(SP3orlaterrecommended),XP

Professional,orWindowsServer2003,Webedition.

MicrosoftSQLServer2000(Personal,Standard,orEnterprise

Edition,SP3recommended)ortheMicrosoftSQLServer

DesktopEngine(MSDE),whichisincludedwithVisualStudio

.NET2003.

MicrosoftInternetExplorer5.5orlater.

InternetInformationServices(IIS).(ToaccesstheASP.NET

features,youmustinstallIISpriortoinstallingtheMicrosoft.NET

Framework.)

The.NETFrameworkSDK,whichyoucandownloadfromthe

MSDNWebsiteat

http://msdn.microsoft.com/netframework/downloads/default.asp.

(BecauseMicrosoftVisualStudio.NETincludestheSDK,you



dontneedtoinstallthe.NETFrameworkSDKseparatelyifyou

installVisualStudio.NET.)NotethatWindowsServer2003

comeswiththe.NETFrameworkversion1.1preinstalled,soyou

donotneedtoinstallthisseparately.

VisualStudio.NET2003orVisualC#.NET2003,Professional

Editionorhigher.YoucanusetheStandardedition,butsome

chapters(includingChapter10)useprojecttypesonlyavailable

intheProfessionalandhighereditions.

Note Tomoreeasilyrunsomeofthecommand-linetoolsin

the.NETFramework(suchaswsdl.exeandthe

command-linecompilers),youmightalsoneedtoadd

thepathstotheseutilitiestothePATHenvironment

variable,asdescribedinAppendixC.Ifyouhave

problemsrunninganyofthecommand-linetools,you

canusetheWindowsSearchfacility(locatedonthe

Startmenu)tosearchforthelocationofthesetools.

ThenaddthepathtotheirlocationtothePATH

environmentvariable.



ConventionsUsedinThisBook

Youcansavetimewhenusingthisbookifyoutakethetimeto

understandhowinstructions,keys,notes,andsoonareusedbeforeyou

startthefirstchapter.Pleasetakeamomenttoreadthefollowinglist,

whichexplainstheconventionsfortheseandotherelements.

Hands-onexercisesforyoutofollowaregiveninnumberedlists

ofsteps(1,2,andsoon).

Textthatyouaretotypeappearsinboldfacetype.

Asyouworkthroughsteps,youwilloccasionallyseetableswith

listsofpropertiesthatyouwilltypeintoVisualC#.NET.

Aplussignbetweentwokeynamesmeansthatyoumustpress

thosekeysatthesametime.Forexample,PressAlt+Tabmeans

thatyouholddowntheAltkeywhilepressingtheTabkey.

NoteslabeledNOTEprovideadditionalinformationortipsabout

atopic.

NoteslabeledIMPORTANTalertyoutoessentialinformationthat

youshouldcheckbeforecontinuingthechapter.Thiscaninclude

informationtohelpyouavoidproblemssuchasapplication

crashesorsecurityissues.

NoteslabeledTIPcanhelpsaveyoutimeandtroubleasyouuse

thetechnologiesbeingdescribed.



Part1:GettingStartedwithASP.NET



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Microsoft ASP.NET Programming with Visual C# .NET Version 2003 Step by Step

Tải bản đầy đủ ngay(0 tr)

×