2025-04-27 07:49:33 -04:00

179 lines
6.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>Response Object</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_response_object"></A><SUP></SUP>Response Object</H2>
<P>You can use the <B>Response </B>object to send output to the client.</P>
<H6>Syntax</H6>
<P><B>Response.</B><I>collection</I>|<I>property</I>|<I>method </I></P>
<P><I>&nbsp;</I></P>
<H6>Collections</H6>
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=cols>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob87j9.htm"><B>Cookies</B></A></TD>
<TD width=70%>Specifies cookie values. Using this collection, you can set cookie values. </TD>
</TR>
</TABLE><BR>
<H6>Properties</H6>
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob1fsi.htm"><B>Buffer</B></A></TD>
<TD width=70%>Indicates whether page output is buffered.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob0rvw.htm"><B>CacheControl</B></A></TD>
<TD width=70%>Sets a header to tell proxy servers or other cache mechanisms whether they can cache the output generated by ASP.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob7fw4.htm"><B>Charset</B></A></TD>
<TD width=70%>Appends the name of the character set to the content-type header. The character set tells the browser how to display characters.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob150l.htm"><B>CodePage</B></A></TD>
<TD width=70%>Sets the Codepage for data in the intrinsic objects for one response. The codepage tells the server how to encode characters for different languages.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob67ol.htm"><B>ContentType</B></A></TD>
<TD width=70%>Specifies the HTTP content type for the response. </TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob8o4z.htm"><B>Expires</B></A></TD>
<TD width=70%>Specifies the length of time before a page cached on a browser expires.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob1qzp.htm"><B>ExpiresAbsolute</B></A></TD>
<TD width=70%>Specifies the date and time on which a page cached on a browser expires.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob1d0k.htm"><B>IsClientConnected</B></A></TD>
<TD width=70%>Indicates whether the client has disconnected from the server.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob055w.htm"><B>LCID</B></A></TD>
<TD width=70%>Sets the LCID for data for one response. The LCID refers to how dates, times, and currency are formatted for a specific geographical locale.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob02lv.htm"><B>Pics</B></A></TD>
<TD width=70%>Set the value for the pics-label response header, to indicate the PICS content rating.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob38hf.htm"><B>Status</B></A></TD>
<TD width=70%>The value of the status line returned by the server. </TD>
</TR>
</TABLE><BR>
<H6>Methods</H6>
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob7yya.htm"><B>AddHeader</B></A></TD>
<TD width=70%>Sets the HTML header <I>name</I> to <I>value</I>. </TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob4eg7.htm"><B>AppendToLog</B></A></TD>
<TD width=70%>Adds a string to the end of the Web server log entry for this request.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob2rxh.htm"><B>BinaryWrite</B></A></TD>
<TD width=70%>Writes the given information to the current HTTP output without any character-set conversion.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob6x82.htm"><B>Clear</B></A></TD>
<TD width=70%>Erases any buffered HTML output. </TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob2sis.htm"><B>End</B></A></TD>
<TD width=70%>Stops processing the .asp file and returns the current result. </TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob74tk.htm"><B>Flush</B></A></TD>
<TD width=70%>Sends buffered output immediately.</TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob8h10.htm"><B>Redirect</B></A></TD>
<TD width=70%>Sends a redirect message to the browser, causing it to attempt to connect to a different URL. </TD>
</TR>
<TR VALIGN="top">
<TD width=30%><A HREF="/iishelp/iis/htm/asp/vbob2w2t.htm"><B>Write</B></A></TD>
<TD width=70%>Writes a variable or text to the current HTTP output as a string. </TD>
</TR>
</TABLE><BR>
<H6>See Also</H6>
<P><A HREF="/iishelp/iis/htm/asp/vbob5ulw.htm"><B>Request</B> Object</A></P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>