资源描述:
《asp简介 毕业论文外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、BriefIntroductionOfASPCraigA.VanLengen,Flagstaff,AZJohnD.Haney.BriefIntroductionOfASP[J].JournalofComputingSciencesinCollegesarchive.2004,20(1)342-356.ActiveServerPages(ASP)isaproven,well-establishedtechnologyforbuildingdynamicWebapplications,whichprovidesthepowe
2、randflexibilityyouneedtocreateanythingfromapersonal,WebbasedphotogallerytoacompletecatalogueandshoppingcartsystemforyournexteCommerceproject。OneuniquefeatureofASPisthatitletsyouchooseyourfavouritescriptinglanguage,beitJavaScriptorVBScript;however,VBScriptisbyfart
3、hemostpopularchoice.Inthisarticle,I'llbringyouuptospeedonthebasicsyntaxoftheVBScriptlanguage,includingvariables,operators,andcontrolstructures.Server-SideScriptingTounderstandwhereASPfitsintothebigpictureofWebdevelopment,youneedtounderstandtheconceptofaserver-sid
4、escriptinglanguage.Ifyou'veprogrammedWebpagesinPerl,PHP,JSP,orColdFusionbefore,youcansafelyskipthissection–allofthoseareserver-sidescriptinglanguages,andASPworksinmuchthesameway.Ifyou'recomingtoASParmedonlywithknowledgeofHTML(andperhapswithsomeCSSand/orJavaScript
5、experience)thenyou'llfindthatserver-sidescriptingisquiteabitdifferent.Letmebeginbygivingyouaquickreviewofhowstandard,non-ASPWebpageswork.AsshowninFigure1,theWebbrowserontheclientcomputer(thecomputerbelongingtotheuser)makesarequestforapage,sayfile.html(1).Assuming
6、therequestedfileexistsontheWebhostcomputerwheretheWebServersoftwarecanfindit,thatsoftwarerepliestotherequestbysendingthefilebacktothebrowser(2).Anyadditionalfiles(images,forexample)requiredtodisplaythepagearerequestedandreceivedinthesameway.Theprotocolusedforthis
7、exchange,andindeedforallcommunicationbetweenWebbrowsersandWebserversiscalledHypertextTransferProtocol(HTTP).Ifyou'veeverusedanyJavaScriptinyourpages,youknowthattherequestedWebpage(file.html)cancontain,inadditiontoplainHTMLcode,smallprogramswritteninJavaScript.The
8、seprograms,orscripts,arereadandexecutedbytheWebbrowserwhilethepageisdisplayedinthebrowser.SotheWebbrowsermustunderstandnotonlyhowtoreadHTMLanddisplaytext.andim