request对象: 1.request.form 获取通过post提交的form表单值,假设页面1.htm里存在一个表单,表单里有一个文本框名字为title,那么request.form("title")得到的值就是用户在1.htm页面里的title文本框里输入的内容值。 2. request.querystring 获取网页地址里问号(?)后面所跟的变量值,假设网址为http://www.360doc.com/detail.asp?id=350 那么,request.querystring("id")得到的值就是id后面的值350 3,cookies 这个以后使用到了再说 4.ServerVariables 这个以后使用到了再说 response对象: 属性:1.Buffer 2.Charset 3.ContentType 4.Expires 5.ExpiresAbsolute 这些属性以后使用到了再说。 方法: 1.End End 方法使用后,将停止处理剩余的脚本并返回当前结果,即只返回response.end()该语句之前的内容。 2.Redirect 重定向,例:response.redirect("http://www.360doc.com") 当脚本运行到这句时,自动重定向到www.360doc.com网页 3.write 这个是最常使用的,结合前面说的request,可以这样写response.write(request.querystring("id")) 那么在页面上将会显示出request.querystring("id")的值350,也可以直接写出内容,如:response.write("我在学习ASP") 集合 |
|