ASP.NET中的Response对象的方法

 


<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&amp;block=1&amp;blockcampaign=1"); document.write ('&amp;cb=' + m3_r); if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used); document.write ("&amp;loc=" + escape(window.location)); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&amp;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 ox_swf = new FlashObject('http://am.zdnet.com.cn/www/images/bnet_v4_728x90_3.swf', 'Advertisement', '728', '90', '8'); ox_swf.addVariable('alink1', 'http%3A%2F%2Fam.zdnet.com.cn%2Fwww%2Fdelivery%2Fck.php%3Foaparams%3D2__bannerid%3D57__zoneid%3D263__cb%3D4bb1bb3d5a__maxdest%3Dhttp%3A%2F%2Fwww.bnet.com.cn'); ox_swf.addVariable('atar1', '_blank'); ox_swf.addParam('allowScriptAccess','always'); ox_swf.write('ox_78cbd54e2e833f5e1422d9b12e470153'); // ]]> --></script> <script type="text/javascript">document.context='Yjo1NyNjOjQ4fA=='; </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&amp;block=1&amp;blockcampaign=1"); document.write ('&amp;cb=' + m3_r); if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used); document.write ("&amp;loc=" + escape(window.location)); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&amp;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> <script type="text/javascript">document.context='Yjo1NyNjOjQ4I2I6NTcjYzo0OCNiOjUxI2M6NDJ8'; </script>

ASP.NET中的Response对象的方法

开发者在线 Builder.com.cn 更新时间:2007-11-19 作者:佚名 来源:论坛整理

本文关键词: ASP.NET Response 对象 方法

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值