<% response.write("hello,world"&"<br>") Randomize response.write "任意数是"&rnd()&"<br>" %> |
<%response.write now() response.end '程序执行显示到此结束 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方法,上面的程序结果将清除。" response.clear ' 清空存储在缓存中的页面 Else response.write "采用end方法,下面的程序将停运。" Response.End ' 立即停止脚本处理,并将缓存中的页面输出 End If %> 如果你只看到“刷新”链接就表明clear方法已经生效<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%> |
新闻热点
疑难解答