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

92 lines
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html dir=ltr><head><title>Built-in ASP Objects</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="Briefly describes the built-in objects provided with Active Server Pages; these are objects that do not require instantiation."><META HTTP-EQUIV="Content-Type" content="text/html; charset=Windows-1252">
<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"><font face="Verdana,Arial,Helvetica">
<h1><a name="H1_37775607">Built-in ASP Objects</a></h1>
<p>Active Server Pages provides built-in objects that make it easier for you to gather information sent with a browser request, to respond to the browser, and to store information about a particular user, such as user-selected preferences. This topic briefly describes each object.</p>
<h2><a name="H2_37776108">Application Object</a></h2>
<p>You use the <strong><a href="vbob8zw4.htm">Application</a></strong> object to share information among all users of a given application.</p>
<h2><a name="H2_37776283">Request Object</a></h2>
<p>You use the <strong><a href="vbob5ulw.htm">Request</a></strong> object to gain access to any information that is passed with an HTTP request. This includes parameters passed from an HTML form using either the POST method or the GET method, cookies, and client certificates. The <strong>Request</strong> object also gives you access to binary data sent to the server, such as file uploads.</p>
<h2><a name="H2_37776813">Response Object</a></h2>
<p>You use the <strong><a href="vbob5sj8.htm">Response</a></strong> object to control the information you send to a user. This includes sending information directly to the browser, redirecting the browser to another URL, or setting cookie values.</p>
<h2><a name="H2_37777094">Server Object</a></h2>
<p>The <a href="vbob7838.htm"><strong>Server</strong></a> object provides access to methods and properties on the server. The most frequently used method is the one that creates an instance of an COM component (<strong>Server.CreateObject</strong>). Other methods apply URL or HTML encoding to strings, map virtual paths to physical paths, and set the timeout period for a script.</p>
<h2><a name="H2_37777518">Session Object</a></h2>
<p>You use the <strong><a href="vbob12d0.htm">Session</a></strong> object to store information needed for a particular user session. Variables stored in the <strong>Session</strong> object are not discarded when the user jumps between pages in the application; instead, these variables persist for the entire time the user is accessing pages in your application. You can also use <strong>Session</strong> methods to explicitly end a session and set the timeout period for an idle session.</p>
<h2><a name="H2_37778059">ObjectContext Object</a></h2>
<p>You use the <strong><a href="vbob554k.htm">ObjectContext</a></strong> object to either commit or abort a transaction initiated by an ASP script.</p>
<H2>ASPError Object</H2>
<P>You can use the <STRONG><A HREF="vbob1dtg.htm">ASPError</A></STRONG> object to trap ASP error and return more informative descriptions to users.</P>
<hr class="iis" size="1">
<p align="center"><em><a href="/iishelp/common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</font>
</body>
</html>