ASP.NET之Response

1、Response派生自HttpResponse类,主要用于回应客户端,通知浏览器回应内容、服务器端的信息以及输出指定内容。

2、主要方法

(1)、Response.Clear();

用于删除所有存在缓冲区里的html输出,只删除预备输出内容,并不删除Response头信息。

(2)、Response.Expires = (int)* ;

设置页面过期时间。

(3)、Response.ContentType;

用于描述内容类型的字符串,格式为type/subtyle,前者标示内容分类,后者标示特定内容类型。

例:

Response.ContentType = “image/png”;//标示输出png格式的图片。

(4)、Response.Write()

输出值;

(5)、Response.Read()

获取值.

文章来源:www.900544.com

 

posted on 2012-08-10 09:49  zieyee  阅读(171)  评论(0)    收藏  举报

导航