
<script type="text/javascript"><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://am.zdnet.com.cn/www/delivery/ajs.php':'http://am.zdnet.com.cn/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=263&block=1&blockcampaign=1"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><//scr"+"ipt>"); //]]>--></script> <script src="http://am.zdnet.com.cn/www/delivery/ajs.php?zoneid=263&block=1&blockcampaign=1&cb=91741032013&loc=http%3A//www.builder.com.cn/2007/1119/642356.shtml&referer=http%3A//www.google.cn/search%3Fhl%3Dzh-CN%26newwindow%3D1%26q%3Dasp.net+response%26btnG%3DGoogle+%25E6%2590%259C%25E7%25B4%25A2%26aq%3Df%26oq%3D" type="text/javascript"></script>

<script type="text/javascript"><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://am.zdnet.com.cn/www/delivery/ajs.php':'http://am.zdnet.com.cn/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=272&block=1&blockcampaign=1"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><//scr"+"ipt>"); //]]>--></script> <script src="http://am.zdnet.com.cn/www/delivery/ajs.php?zoneid=272&block=1&blockcampaign=1&cb=71629538123&exclude=,bannerid:57,campaignid:48,&loc=http%3A//www.builder.com.cn/2007/1119/642356.shtml&referer=http%3A//www.google.cn/search%3Fhl%3Dzh-CN%26newwindow%3D1%26q%3Dasp.net+response%26btnG%3DGoogle+%25E6%2590%259C%25E7%25B4%25A2%26aq%3Df%26oq%3D&context=Yjo1NyNjOjQ4fA%3D%3D&mmm_fo=1" type="text/javascript"></script>

Asp.Net 中的Response对象的方法 如下表所示,下面将向大家详细介绍它的重要方法。
WriteFile 将文件输出到客户端 Write 将数据输出到客户端浏览器 Redirect 将网页重新转到另一地址 Flush 将缓冲区的数据输出到客户端浏览器 End 停止并结束ASP网页的处理 Close 关闭客户端的联机 ClearHeaders 清除缓冲区中的页面标题 Clear 清除缓冲区的数据 BinaryWrite 将二进制字符或字符串输出到客户端浏览器 AppendToLog 将自定义的数据加入到IIS日志文件中(Log File),以便追踪与分析记录。 |
1.Write
功能:
将数据输出到客户端浏览器。
格式:
Response.Write ("字符串/变量")
一般而言,Response.Write方法用于输出变量与易变动的数据。通常在程序中<%response.write(XXX)%>可简写。
2.Redirect
功能:
重新将网页转向另一个网址。
格式:
Response.redirect(”URL”)
·DatePart0函数:
功能:取出年、月、日的数值
格式:X=DatePart(”Y”,Z1)
其中,z表示传入的日期时间;Y代表取出的年月目的各部分数值.
· Now函数:读取当前的系统日期及时间。
· WeekdayName(n)函数
功能:返回星期名称。
3.end
功能:
停止处理的ASP网页,并将结果返回浏览器。告知浏览器数据已经全部下载 完毕,同时也会使IIS/PwS不再解读后续的HTML标示与ASP程序,而达到结束整个ASP文件的目的。
格式:
ResDonse.end