計(jì)算機(jī)專業(yè)外文翻譯原文ASP語言知識(shí)介紹_第1頁
計(jì)算機(jī)專業(yè)外文翻譯原文ASP語言知識(shí)介紹_第2頁
計(jì)算機(jī)專業(yè)外文翻譯原文ASP語言知識(shí)介紹_第3頁
計(jì)算機(jī)專業(yè)外文翻譯原文ASP語言知識(shí)介紹_第4頁
計(jì)算機(jī)專業(yè)外文翻譯原文ASP語言知識(shí)介紹_第5頁
已閱讀5頁,還剩6頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

畢業(yè)設(shè)計(jì)〔論文〕英文翻譯學(xué)院:信息技術(shù)學(xué)院專業(yè):計(jì)算機(jī)科學(xué)及技術(shù)學(xué)生姓名:王佩學(xué)號(hào):0506120502題目:基于Web的網(wǎng)絡(luò)商品銷售系統(tǒng)指導(dǎo)教師:張漪日期:20212月27日〔中文文獻(xiàn)〕MicrosoftActiveServerPages即我們所稱的ASP,其實(shí)是一套微軟開發(fā)的效勞器端腳本環(huán)境,ASP內(nèi)含于IIS3.0和4.0之中,通過ASP我們可以結(jié)合HTML網(wǎng)頁、ASP指令和ActiveX元件建立動(dòng)態(tài)、交互且高效的WEB效勞器應(yīng)用程序。有了ASP你就不必?fù)?dān)憂客戶的閱讀器是否能運(yùn)行你所編寫的代碼,因?yàn)槿康某绦蚨紝⒃谛谄鞫藞?zhí)行,包括全部嵌在一般HTML中的腳本程序。當(dāng)程序執(zhí)行完畢后,效勞器僅將執(zhí)行的結(jié)果返回給客戶閱讀器,這樣也就減輕了客戶端閱讀器的負(fù)擔(dān),大大進(jìn)步了交互的速度。以下羅列了ActiveServerPages所獨(dú)具的一些特點(diǎn):1.運(yùn)用VBScript簡潔易懂的腳本語言,結(jié)合HTML代碼,即可快速地完成網(wǎng)站的應(yīng)用程序。2.無須compile編譯,簡潔編寫,可在效勞器端干脆執(zhí)行。3.運(yùn)用一般的文本編輯器,如Windows的記事本,即可進(jìn)展編輯設(shè)計(jì)。4.及閱讀器無關(guān)(BrowserIndependence),用戶端只要運(yùn)用可執(zhí)行HTML碼的閱讀器,即可閱讀ActiveServerPages所設(shè)計(jì)的網(wǎng)頁內(nèi)容。ActiveServerPages所運(yùn)用的腳本語言(VBScript、Jscript)均在WEB效勞器端執(zhí)行,用戶端的閱讀器不需要可以執(zhí)行這些腳本語言。5.ActiveServerPages能及任何ActiveXscripting語言相容。除了可運(yùn)用VBScript或JScript語言來設(shè)計(jì)外,還通過plug-in的方式,運(yùn)用由第三方所供應(yīng)的其他腳本語言,譬如REXX、Perl、Tcl等。腳本引擎是處理腳本程序的COM(ComponentObjectModel)物件。6.ActiveServerPages的源程序,不會(huì)被傳到客戶閱讀器,因此可以防止所寫的源程序被別人剽竊,也進(jìn)步了程序的平安性。7.可運(yùn)用效勞器端的腳原來產(chǎn)生客戶端的腳本。8.物件導(dǎo)向〔Object-oriented〕。9.ActiveXServerComponents(ActiveX效勞器元件)具有無限可擴(kuò)大性??梢赃\(yùn)用VisualBasic、Java、VisualC++、COBOL等編程語言來編寫你所需要的ActiveXServerComponent。ASP的奇異之處真是數(shù)不勝數(shù),下面就請(qǐng)各位系好平安帶,我將帶著大家進(jìn)入ASP的夢幻世界。ASP運(yùn)行環(huán)境:erMicrosoftPersonalWebServeronWindows95/98正如前文所述,及一般的程序不同,.asp程序無須編譯,ASP程序的限制部份,是運(yùn)用VBScript、JScript等腳本語言來設(shè)計(jì)的,當(dāng)執(zhí)行ASP程序時(shí),腳本程序?qū)⒁徽讎诟腊l(fā)送給腳本說明器(即腳本引擎),由腳本說明器進(jìn)展翻譯并將其轉(zhuǎn)換成效勞器所能執(zhí)行的囑咐。當(dāng)然,同其他編程語言一樣,ASP程序的編寫也遵循確定的規(guī)則,假設(shè)你想運(yùn)用你所寵愛的腳本語言編寫ASP程序,則你的效勞器上必需要有能說明這種腳本語言的腳本說明器。當(dāng)你安裝ASP時(shí),系統(tǒng)供應(yīng)了兩種腳本語言:VBsrcipt和JScript,而VBscript則被作為系統(tǒng)默認(rèn)的腳本語言。你也可以依據(jù)自己的愛好變更系統(tǒng)默認(rèn)的腳本語言。ASP本身并不是一種腳本語言,它只是供應(yīng)了一種使鑲嵌在HTML頁面中的腳本程序得以運(yùn)行的環(huán)境。但是,要學(xué)好ASP又必需駕馭它的語法和規(guī)則。如今就讓我們開始一步一步地相識(shí)并學(xué)習(xí)ActiveServerPages。ASP程序其實(shí)是以擴(kuò)展名為.asp的純文本形式存在于WEB效勞器上的,你可以用任何文本編輯器翻開它,ASP程序中可以包含純文本、HTML標(biāo)記以及腳本囑咐。你只需將.asp程序放在WEB效勞器的虛擬書目下〔該書目必需要有可執(zhí)行權(quán)限〕,就可以通過WWW的方式訪問ASP程序了。要學(xué)好ASP程序的設(shè)計(jì),必需駕馭腳本的編寫,則終究什么是腳本呢?其實(shí)腳本是由一系列的腳本囑咐所組成的,猶如一般的程序,腳本可以將一個(gè)值賦給一個(gè)變量,可以囑咐WEB效勞器發(fā)送一個(gè)值到客戶閱讀器,還可以將一系列囑咐定義成一個(gè)過程。要編寫腳本,你必需要熟識(shí)至少一門腳本語言,如VBScript。腳本語言是一種介乎于HTML和諸如JAVA、VisualBasic、C++等編程語言之間的一種特別的語言,盡管它更接近后者,但它卻不具有編程語言困難、嚴(yán)謹(jǐn)?shù)恼Z法和規(guī)則。如前所述ASP所供應(yīng)的腳本運(yùn)行環(huán)境可支持多種腳本語言,譬如:JScript、REXX、PERL等等,這無疑給ASP程序設(shè)計(jì)者供應(yīng)了廣泛的發(fā)揮余地。ASP的出現(xiàn)使得廣袤WEB設(shè)計(jì)者不必在為客戶閱讀器是否支持而擔(dān)憂,事實(shí)上就算你在同一個(gè).asp文件中運(yùn)用不同的腳本語言,你都無須為此擔(dān)憂,因?yàn)槿康囊磺卸紝⒃谛谄鞫诉M(jìn)展,客戶閱讀器得到的只是一個(gè)程序執(zhí)行的結(jié)果,而你也只需在.asp中聲明運(yùn)用不同的腳本語言即可。下面是一個(gè)典型的在同一.asp文件中運(yùn)用兩種腳本語言的例子:<HTML><BODY><TABLE><%CallCallme%></TABLE><%CallViewDate%></BODY></HTML><SCRIPTLANGUAGE=VBScriptRUNAT=Server>SubCallmeResponse.Write"<TR><TD>Call</TD><TD>Me</TD></TR>"EndSub</SCRIPT><SCRIPTLANGUAGE=JScriptRUNAT=Server>functionViewDate(){varxx=newDate()Response.Write(x.toString())}</SCRIPT>這是各位在本文中接觸的第一個(gè)真正的ASP程序,千萬不要被“<%%>〞符號(hào)搞糊涂,這其實(shí)是標(biāo)準(zhǔn)的ASP定界符,而“<SCRIPT></SCRIPT>〞之間的就是腳本語言。ASP不同于腳本語言,它有自己特定的語法,全部的ASP囑咐都必需包含在<%和%>之內(nèi),如:<%test="English"%>,ASP通過包含在<%和%>中的表達(dá)式將執(zhí)行結(jié)果輸出到客戶閱讀器,如:<%=test%>就是將前面賦給變量test的值English發(fā)送到客戶閱讀器中,而當(dāng)變量test的值為Mathematics時(shí),以下程序:Thisweekendwewilltest<%=test%>.在客戶閱讀器中則顯示為:ThisweekendwewilltestMathematics.學(xué)習(xí)ASP最好的方法莫過于親自動(dòng)手編寫,為了在最短的時(shí)間內(nèi)使各位駕馭ASP的程序設(shè)計(jì)技巧,本文將實(shí)行實(shí)例分析法,通過一系列的實(shí)例讓各位在理論中學(xué)習(xí)ASP。建立一個(gè)ASP頁面,你所需的只是翻開一個(gè)文本編輯器,如:Notepad,然后跟我開始動(dòng)手編寫第一個(gè)ASP程序。下面我們將建立一個(gè)自動(dòng)監(jiān)測閱讀時(shí)間并依據(jù)不同時(shí)段動(dòng)態(tài)顯示不同頁面內(nèi)容的ASP程序,請(qǐng)將以下代碼剪貼到你的文本編輯器中,并存為test1.asp:<html><body><FONTCOLOR="Green"><%IfTime<#12:00:00#AndTime>=#00:00:00#Then%>早上好,今日天氣不賴啊!<%ElseIfTime<#19:00:00#AndTime>=#12:00:00#Then%>下午好!<%Else%>哈嘍!今晚你有沒有去IRC閑聊!<%EndIf%></body></html>將test1.asp保存在WEB效勞器的虛擬書目(如:aspsamp/)下,并在閱讀器中用的方式進(jìn)展閱讀:://yourcomputername/aspsamp/test1.asp,你將會(huì)新穎 地覺察,你的頁面真的活起來了。雖然,這只是一個(gè)特別簡潔的實(shí)例,而且這一功能完全可以通過JavaScript完成,但是不難覺察運(yùn)用ASP要比JavaScript簡潔、快速得多,而且運(yùn)用此法,你完全可以輕而易舉地令你的網(wǎng)頁在不同的時(shí)段展示不同的風(fēng)格。此例中的“Time〞事實(shí)上是一個(gè)VBScript內(nèi)置的顯示系統(tǒng)當(dāng)前時(shí)間的函數(shù),由于系統(tǒng)默認(rèn)的腳本語言是VBScript,因此當(dāng)你在ASP囑咐中調(diào)用該函數(shù)時(shí),腳本引擎會(huì)自動(dòng)將其轉(zhuǎn)換成當(dāng)前的系統(tǒng)時(shí)間。接下來我們將給test1.asp添加一點(diǎn)色調(diào),在<body>標(biāo)識(shí)中添加“bgcolor="<%=bgc%>〞即變?yōu)?lt;bodybgcolor="<%=bgc%>">,并在<body>標(biāo)記前添加如下語句:<%IfTime<#12:00:00#AndTime>=#00:00:00#Thenbgc="silver"ElseIfTime<#19:00:00#AndTime>=#12:00:00#Thenbgc="navy"Elsebgc="red"EndIf%>如此一來,當(dāng)用戶在不同的時(shí)段訪問你的頁面時(shí),他們將會(huì)看到不同的頁面背風(fēng)光。我們可以做的事情還有許多,譬如你想知道在凌晨至十二點(diǎn)之間閱讀你頁面的客戶的姓名,并向他或她問好,則下面的這段程序?qū)⒛苤氵_(dá)成心愿。首先你需要在頁面中設(shè)置表單,將以下HTML代碼剪貼到“<%IfTime<#12:00:00#AndTime>=#00:00:00#Then%>〞之后:歡迎光臨我的主頁,請(qǐng)?zhí)顚懸韵滦畔?<FORMMETHOD="POST"ACTION="test1.asp"><P>FirstName:<INPUTNAME="fname"SIZE="48"><P>LastName:<INPUTNAME="lname"SIZE="48"><P>Title:<INPUTNAME="title"TYPE=RADIOVALUE="mr">Mr.<INPUTNAME="title"TYPE=RADIOVALUE="ms">Ms.<P><INPUTTYPE=SUBMIT><INPUTTYPE=RESET></FORM>然后在以上HTML代碼后面添加如下ASP囑咐:<%title=request.form("title")iftitle="mr"then%>歡迎您Mr.<%=request.form("fname")%>。<%elseiftitle="ms"then%>歡迎您Ms.<%=request.form("fname")%>。<%else%><B><fontcolor=blue>歡迎您<%=request.form("fname")&""&request.form("lname")%>。</font></B><%endif%>保存文件test1.asp,并在閱讀器中以方式進(jìn)展閱讀,假設(shè)此時(shí)的系統(tǒng)時(shí)間在凌晨0:00:00和中午12:00:00之間的話,閱讀器將顯示如下畫面:這其實(shí)是一個(gè)在Internet和Intranet上常見的功能,即當(dāng)用戶在閱讀器端填寫完表單后,通過調(diào)用一個(gè)通用網(wǎng)關(guān)程序?qū)⒂脩魯?shù)據(jù)傳送到效勞器,由效勞器進(jìn)展處理后再將結(jié)果返還給客戶閱讀器。過去為了實(shí)現(xiàn)這樣的功能必需編寫一個(gè)獨(dú)立于HTML之外的CGI程序,并通過HTML進(jìn)展調(diào)用,撇開CGI編寫困難等缺點(diǎn)不談,CGI的執(zhí)行效率也是一個(gè)大問題,每一個(gè)表單(form)均須執(zhí)行一個(gè)可執(zhí)行文檔,當(dāng)多人同時(shí)上線運(yùn)用時(shí),多個(gè)文檔同時(shí)執(zhí)行,將大大降低WEB效勞器的執(zhí)行速度,如今ASP供應(yīng)了及HTML完全相融的編程環(huán)境,明顯要比運(yùn)用CGI便捷得多。在本期的最終讓我們再來看看ASP的循環(huán)功能,譬如你渴望當(dāng)客戶在晚間7:00至凌晨0:00:00閱讀你的頁面時(shí),在頁面中央顯示6個(gè)笑臉表示問候,則你只需要將以下囑咐剪貼到“GoodEvening!〞后面即可:<%fori=1to6%><p><center><imgsrc="smile.gif"width="32"height="32"alt="晚上好"></p><%next%>這是一個(gè)最最根本的循環(huán)語句,它將一個(gè)笑臉圖片重復(fù)調(diào)用六次并顯示在頁面上。當(dāng)然此例的效果完全可以用HTML做到,但是不難覺察運(yùn)用ASP大大縮短了代碼的重復(fù)編寫,使得程序具有良好的可閱讀性。另外,當(dāng)你制作一個(gè)諸如依據(jù)用戶投票來給所評(píng)測的對(duì)象評(píng)定星級(jí)的評(píng)測站點(diǎn)時(shí),運(yùn)用此法,你就完全不需要為每一個(gè)星級(jí)制作一幅圖片。假設(shè)一個(gè)對(duì)象被評(píng)為4星級(jí),那只需將一顆星的圖片循環(huán)顯示4次,類推即可。摘自ASP語言學(xué)問介紹Johnson〔外文翻譯〕MicrosoftActiveServerPagesnamelyIanASPforcalling,itssolidisasetoftinyandsoftopenamachineofthehaircarryfeetthiswreath,theinsideofASPiscontainedinIIS3.0with4.0itisinside,overASPIcanmatchwiththeknottheHTMLnetpage,ASPpointthereamtoshouldusethedistanceprefacewiththeActiveXaWEBforsettingupmoving,handingoverwitheachotherandhigheffectamachine.ThereisASPyounotnecessarilyaheartadistanceforofthemachineofisonbehalftodeniestocancarryalineofyouaplaitwritecode,becauseofforhavingprefacewillcarryafeetfor,ofpackcontaininHTMLthisdistanceprefaceinamachine.Thedistanceprefacelineisovertofinishbehind,amachineonlyanegativeloadforofknotfruitreturningreturningtoamachine,thiskindtooreducinglightlyadoorcarryingthemachineof,bigandbiglifthighhandoverwitheachotherandsoondegree.ThennextrowtheActiveServerPageshasonlyofatheamountiswithordering:1.MakeuseVBScript,JScript...etc.Chiensingleeasilyfeetthislanguagethatunderstandtalks,theknotmatchestheHTMLonbehalfcode,canningbeoverquicklyandsoonnamelythenetstandsofshouldusethedistancepreface.2.Havenomustcompiletheplaittranslates,permittingtheeasyplaitwrite,cancarrytokeepconnectinginamachinethelineof.3.Maketextthisplaitmachinethatusethe,iftheWindowsrecordsthematterthis,canenternamelyaplaitestablishestoaccount.4.Havenopass(BrowserIndependence)withthemachineof,useathemachineofforcarryingwanttomakeusecanaHTMLcode,namelycantheActiveServerPagesanetforestablishingaccountingpageinsidepermit.ActiveServerPagesafeetformakingusingthislanguagespeech(VBScript,Jscript)allcarriesintheWEBamachineathemachineoffor,usingfirstthedoorcarrydoesnotneedtowantcanenoughathisamount'sfeetthislanguagespeech.5.ActiveServerPagescanwithtermwhytheActiveXscriptinglanguagespeechpermitsmutually.InadditiontocanningmakeestablishwithVBScriptorJScriptlanguagespeechestoaccount,returntheovertheplug-insquaretype,makeusefromthethirdanitshisfeetforliftingprovidingthislanguagespeech,suchasREXX,Perl,etc.ofTcl,.FeetthisleadistheCOM(ComponentObjectModel)thingpieceofareasonfeetthisdistancepreface.6.ActiveServerPagessourcedistancepreface,can'twerespreadamachine,becauseofandcantoavoidtodonotneedasourceforwritingdistanceprefacedrivehisperson,alsolifthighthepeacefulwholesexofthedistancepreface.7.Canmakeusethefeetthatamachinecarrythisproducetolivingafeetforthedoorcarrythis.8.Thethingpieceleadsthedirection.(Object-oriented)9.TheActiveXServerComponents(ActiveXamachineapiece)havetohavenolimitcan.CantomaketousetheVisualBasic,Java,VisualC++,COBOLetc.plaitdistancelanguagespeechweavestowriteyouranActiveXforneedingwantingServerComponent.ASPstrangeandwonderfuladreamfortrueisnotofraising,descendingpleasingeachlyisverypeacefulandalllytaking,IwilltakinggettingbighouseenteringintoASPalifetimeboundary.Awreathforfirst,lettingIcomingseeingcarryingalineoflytheASPneed:MicrosoftPeerWebServicesVersion3.0onWindowsNTWorkstationMicrosoftPersonalWebServeronWindows95/98Itispositivetoisnotsuchastheex-textadistanceforsaying,withfirstsortprefacetogether,.Theaspdistanceprefacehasnoandmustweavetotranslate,theASPdistanceprefacecontrolstomakea,istomakeestablishwithVBScript,JScript...etc.feetthislanguagespeechtoaccountof,betheanASPdistancepreface,feetthisdistanceprefacewillathewholesetoflifereamhairsendstoreleasefeetthissolutionthemachine(namelyfeetthisleadthe),beingreleasedbyfeetthissolutionthemachineenteralineofturningovertotranslatetocombineitsturntochangealifeforcanthelineofream.Whenhowever,togetheritsheweavethedistancelanguagetalksakind,theASPdistanceprefaceplaitwritestoothefollowsatherulesthatsettleisthen,suchasfruityouwantstomakeuseyourafeetforpleasedlovethislanguagespeechplaitwritestheASPdistancepreface,thatyouofamachinethetopmusthavenecessarilyandcansolvefeetthissolutionthatreleasethistypeoffeetthislanguagespeechreleasesthemachine.WhenyouarepeacefultopacktheASP,istheliftedtoprovidetwokindsoffeetsthislanguagespeech:VBsrciptwithJScript,buttheVBscriptwerethenmadeforisfeetthislanguagespeechthatrecognize.YoutoocanwithrootaccordingtofromFofpleasedliketochangetobecomeisfeetthislanguagespeechthatrecognize.ASPthisbodyisnotakindoffeetthislanguagetotalk,itsisawreathtoliftedtoprovideakindofmakinggotinHTMLpagefeetinthisdistanceprefacetocarryline.Butis,tolearnthegoodASPagainandnecessarilymustthelanguagemethodthatholditisthenwiththerules.NowatletIopentostartastepperstepgroundrecognizestoknowtocombinetolearntheActiveServerPages.ASPdistanceprefaceitssolidregardexhibitionas.AsppuretextthisformtypesavetocancontainwiththepackinontheWEBamachineof,youcanthenusetermwhytextthisplaitmachinebeatopenit,ASPdistanceprefacethepuretextthis,HTMLmarkrecordswithandfeetthislifemakes.Youneedonly.TheaspdistanceprefaceputstheinWEBamachineintendseyesrecordthebottom(thateyesrecordtomusthavenecessarilycanapowerlimit),canvisitedtoasktheASPdistanceprefaceovertheWWWsquaretypewiththe.ToinglearnthegoodASPdistanceprefaceestablishtoaccount,necessarilymusttheplaitthatholdthefeetthiswrite,thatinvestigateunexpectedlytheisafeetthisItssolidfeetthisisfromanisfeetthislifereamasetoftherowof,suchastogetherathedistanceprefaceofthesort,feetthiscantogiveaworthachangesthedeal,canmaketheWEBamachinehairsendavaluewiththelifeamachine,canalsowithwillanisrowlifethereamsettlestherighteousnessanoverdistance.Toweavetowritethefeetthis,youmustwanttobefamiliarnecessarilyalltolittleafeetthislanguagespeech,suchasVBScript.FeetthislanguagespeechisakindoflyinginHTMLwith,suchasJAVA,VisualBasic,C,++etc.weavesthedistancelanguagespeechalanguageforofakindoflywithtalks,doingtotakecareofitevenconnectthenearempress,butitdoesnothavetheplaitdistancelanguagethespeechreplythelanguagemethodofthemiscellaneousandstricttoisthenwithrules.Suchastheex-afeetforsayingfirstofASPliftingtoprovidethiscarriesawreathcanholdtogrowfeetthislanguagespeechmore,suchas:JScript,REXX,PERL...etc.etc.,thishavenotheestablishestheASPdistanceprefacetoaccountliftthehairthatprovidedthewideflicksremainingground.TheASPmakesnowthewidelybigWEBestablishestoaccountnotnecessarilyatistodeniesforamachineholdbutaheart,solidontheoccasionoftopcalculateyouattogethera.Asptextafeetforinsidemakingusingnottogetherthislanguagetalks,youhavenomustforthisloadof,youalsoneedonlyatbecauseofhaveonslicingfortowillcarryintoinamachineafor,amachinehavetoarrivingistheknotfruitofadistanceprefaceline,.Aspinsideafeetforclearlymakingusingnottogetherthislanguagespeechisnamelycan.Bottomisatypeofattogethera.Asptextason:<HTML><BODY><TABLE><%CallCallme%></TABLE><%CallViewDate%></BODY></HTML><SCRIPTLANGUAGE=VBScriptRUNAT=Server>SubCallmeResponse.Write"<TR><TD>Call</TD><TD>Me</TD></TR>"EndSub</SCRIPT><SCRIPTLANGUAGE=JScriptRUNAT=Server>functionViewDate(){varxx=newDate()Response.Write(x.toString())}</SCRIPT>ThisiseachonetoconnecttheinthistextatruepositiveASPdistancepreface,100010000donotwantthequilt"<%%>"signnumbermakethedraws,thisitssolidisanASPtomarktoallowtosettletheboundarysign,butthe"<SCRIPT></SCRIPT>"isfeetthislanguagespeech.ASPnottalkinfeetthislanguagetogether,ithavefromtheFwiththelanguagemethodthatsettle,anASPforhavinglifereamallandnecessarilymustthepackcontainin<%with%>of,suchas:<%test="English"%>,theASPlosestheaknotfruittooveraformforcontainingin<%with%>reachtypemachine,suchas:<%=test%>istogiveworththehairofEnglishthethatchangethedealtesttosendtoamachineinside,butwhenchangethevalueofthedealtestastheMathematics,thennextdistancepreface:Thisweekendwewilltest<%=test%>.Thenshowtoshowinamachinefor:ThisweekendwewilltestMathematics.LearntheASPgoodofsquaremethodoverinclosefrommovethehandplaitwrite,formaketheeachholdtheASPdistanceprefacetoestablishtoaccounttheskillinthemostshortlyhour,thistextwilladopttotakethesolidacentmethod,overanisthesolidexampleoftherowleteachonelearntheASPinsolid.SetupanASPpage,youaforneedingistobeatstoopenatextthisplaitmachine,suchas:Notepad,howeveropentostarttomovewithmebehindthehandplaitwritethefirstASPdistancepreface.BottomIwillsetupanASPforfrommovingmeasuringhourincombiningfirstrootaccordingtonottogetherhourthesegmentmovestheshowstoshownottogetherthepageinsidepermitdistancepreface,pleaseshearthethennextonbehalfcodetotextthisplaitmachineinsidethatsticktoyou,combinetosavefortest1.asp:<html><body><FONTCOLOR="Green"><%IfTime<#12:00:00#AndTime>=#00:00:00#Then%>Lastearlygood,aspiritdonotdependonnow!<%ElseIfTime<#19:00:00#AndTime>=#12:00:00#Then%>Bottomthenoonisgood!<%Else%>hello!NowlateyouhaveanddidnotgototheIRCchatsforday!<%EndIf%></body></html>Protecttosavethetest1.asptheinWEBamachineintendeyesrecord(suchas:Aspsamp/)bottom,combineinthemachineofthesquaretypeofusingtheenters,suchas:://yourcomputername/aspsamp/test1.asp,youwillbenewhairstrangelynow,youofthepageisreallylivetorisestocome.Althoughhowever,thisonlyisanotoftensinglesolidexampleinChien,butandthiscanbeoverandallandcanisoverovertheJavaScriptwiththe,isanotdifficulthairtomakewanttocomparewiththeASPJavaScriptChien'snow,fastgetsoonmany,butandcarriestousethismethod,youareoverandallcanwithlightbutraiseahourofnetpageatnottogetheranexhibitionthatmakesyoushowingeasilynottogetherofbreezespace.This"Time"intheexampleissolidontheoccasionofthetopisaVBScriptinsidetoplaceofshowtoshowisafeetforoflettercounting,frominisrecognizingthislanguagespeechfortobefrontisaVBScript,beingyoubecauseofthistoadjusttousethatletterinASPlifereamseveral,feetthisleadswouldfrommoveitsturntochangebeforebeingofishour.Connectthebottomtomewilladdthetest1.asptoaddsomecolor,addtoaddthe"bgcolor="the<%=thebgcthe%>"changenamelyfor<thebodybgcolorthe="<%=bgc%>">in<body>markknew,combinetomarkatthe<body>beforerecordingaddstoaddsuchasthenextlanguagesentence:<%IfTime<#12:00:00#AndTime>=#00:00:00#Thenbgc="silver"ElseIfTime<#19:00:00#AndTime>=#12:00:00#Thenbgc="navy"Elsebgc="red"EndIf%>Comesuchasthis,betouseahourforatnottogetherapageforvisittingaskingyou,hewillseenottogetherofpagecarryviewcoloronpage'sback.Icanthenthematterfeelingthatdostillhasverymuch,ifyouwanttoknowanasurnameofdoorathisdistancefor,combiningfacingheorsheaskinggoodly,thatdescendingprefacewillcanhelpyoureachheartwish.Headfirstyouneedwanttoestablishtoplacetheforminpagesingle,shearthethennextHTMLonbehalfcodetostick"<%IfTime<#12:00:00#AndTime>=#00:00:00#Then%>"itsempress:The歡facesthelightfacesmymainpage,pleasingfilltowritethendownletter:<FORMMETHOD="POST"ACTION="test1.asp"><P>FirstName:<INPUTNAME="fname"SIZE="48"><P>LastName:<INPUTNAME="lname"SIZE="48"><P>Title:<INPUTNAME="title"TYPE=RADIOVALUE="mr">Mr.<INPUTNAME="title"TYPE=RADIOVALUE="ms">Ms.<P><INPUTTYPE=SUBMIT><INPUTTYPE=RESET></FORM>HoweverempressatthenlastHTMLonbehalfcodeempressaddstoaddsuchasthenextASPlifeream:<%title=request.form("title")iftitle="mr"then%>ThefacesyourMr.<%=request.form("fname")%>.<%elseiftitle="ms"then%>ThefacesyourMs.<%=request.form("fname")%>.<%else%><B><fontcolor=blue>thefacesyou<%=request.form("fname")&""&request.form("lname")%>.</font></B><%endif%>Protecttosavethetextatest1.asp,combinetoenterawiththesquaretypeininmachine,suchasthishouroffruitofishourawordsforin0:00:00withnoon12:00:00it,themachineofwillshowtoshowsuchasthenextpainting:ThisitssolidisaforinInternetwiththeIntranetoftenseeingcan,thenwhenusedoorisafterthemachineofcarryfilltowritetheoverformsingle,overadjusttousewithathenetpassdistanceprefacewillusethenumberaccordingtospreadtosendtoamachine,beenteredbyamachineareasonempressreturntheknotfruitagaintoreturntoamachine.OvergotoforsolidtheofthiskindcanmustweavetowriteaforonlyintheoutsideCGIdistanceprefaceoftheHTML,combiningoverHTMLenteringlineadjustingusing,openningCGIplaitwritingreplyingmiscellaneousetc.lackingorderingdoingnottalk,CGIaneffectratenecessarilytoalsoisanowbigaskinga

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論