资源描述:
《asp简介 毕业论文外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、BriefIntroductionOfASPCraigA.VanLengen,Flagstaff,AZJohnD.Haney.BriefIntroductionOfASP[J].JournalofComputingSciencesinCollegesarchive.2004,20(1)342-356.ActiveServerPages(ASP)isaproven,well-establishedtechnologyforbuildingdynamicWebapplications,whichprovidesthepowerandflexibilityyouneedt
2、ocreateanythingfromapersonal,WebbasedphotogallerytoacompletecatalogueandshoppingcartsystemforyournexteCommerceproject。OneuniquefeatureofASPisthatitletsyouchooseyourfavouritescriptinglanguage,beitJavaScriptorVBScript;however,VBScriptisbyfarthemostpopularchoice.Inthisarticle,I'llbringyou
3、uptospeedonthebasicsyntaxoftheVBScriptlanguage,includingvariables,operators,andcontrolstructures.Server-SideScriptingTounderstandwhereASPfitsintothebigpictureofWebdevelopment,youneedtounderstandtheconceptofaserver-sidescriptinglanguage.Ifyou'veprogrammedWebpagesinPerl,PHP,JSP,orColdFus
4、ionbefore,youcansafelyskipthissection–allofthoseareserver-sidescriptinglanguages,andASPworksinmuchthesameway.Ifyou'recomingtoASParmedonlywithknowledgeofHTML(andperhapswithsomeCSSand/orJavaScriptexperience)thenyou'llfindthatserver-sidescriptingisquiteabitdifferent.Letmebeginbygivingyoua
5、quickreviewofhowstandard,non-ASPWebpageswork.AsshowninFigure1,theWebbrowserontheclientcomputer(thecomputerbelongingtotheuser)makesarequestforapage,sayfile.html(1).AssumingtherequestedfileexistsontheWebhostcomputerwheretheWebServersoftwarecanfindit,thatsoftwarerepliestotherequestbysendi
6、ngthefilebacktothebrowser(2).Anyadditionalfiles(images,forexample)requiredtodisplaythepagearerequestedandreceivedinthesameway.Theprotocolusedforthisexchange,andindeedforallcommunicationbetweenWebbrowsersandWebserversiscalledHypertextTransferProtocol(HTTP).Ifyou'veeverusedanyJavaScripti
7、nyourpages,youknowthattherequestedWebpage(file.html)cancontain,inadditiontoplainHTMLcode,smallprogramswritteninJavaScript.Theseprograms,orscripts,arereadandexecutedbytheWebbrowserwhilethepageisdisplayedinthebrowser.SotheWebbrowsermustunderstandnotonlyhowtoreadHTMLanddisplaytext.andim