% response.write("hello,world""br>") Randomize response.write "任意數(shù)是"rnd()"br>" %> |
%response.write now() response.end '程序執(zhí)行顯示到此結(jié)束 response.write rnd()%> |
%response.write now() response.clear '以上程序到此全被清除 response.write rnd()%> |
% filepath=request.servervariables("script_name") user=Request.Form("username") pwd=Request.Form("password") %> form method="POST" action="%=filepath%>"> name:input type="text" name="username">br> pwd:input type="password" name="password">br> input type="submit" value="submit"> /form> % If user="cnbruce" and pwd="cnbruce" Then response.write "采用clear方法,上面的程序結(jié)果將清除。" response.clear ' 清空存儲(chǔ)在緩存中的頁面 Else response.write "采用end方法,下面的程序?qū)⑼_\(yùn)。" Response.End ' 立即停止腳本處理,并將緩存中的頁面輸出 End If %> 如果你只看到“刷新”鏈接就表明clear方法已經(jīng)生效br> a href="%=filepath%>">刷新/a> |
%response.redirect("http://www.cnbruce.com/")%> |
% Response.ContentType = "text/HTML" %> % Response.ContentType = "image/GIF" %> % Response.ContentType = "image/JPEG" %> % Response.ContentType = "text/plain" %> % Response.ContentType = "image/JPEG" %> |
% Response.charset = "big5" %> 中文顯示,但采用的big5繁體的編碼,所以看到的是亂碼。 |
% Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> |
% Response.Status = "401 Unauthorized" %> |
Response.buffer=true |
% submitname=request.form("submit") if submitname="submit" then email=request.form("email") cc=request.form("cc") subject=request.form("subject") body=request.form("body") response.redirect("mailto:"email"?cc="cc"subject="subject"body="body) else %> form name="form1" method="post" action="email.asp"> email:input name="email">br> cc:input name="cc">br> subject:input name="subject">br> body:input name="body">br> input type="submit" name="submit" value="submit"> /form> %end if%> |
標(biāo)簽:平頂山 馬鞍山 孝感 防城港 遼陽 湖北 四平 朝陽
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ASP編程入門進(jìn)階(五):內(nèi)置對(duì)象Response》,本文關(guān)鍵詞 ASP,編程,入門,進(jìn)階,五,內(nèi)置,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。