📄 asp_ref_server.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASP Server Object</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>ASP Server Object</h1>
<a href="asp_ref_session.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="asp_ref_error.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>
<hr />
<p class="intro">The ASP Server object is used to access properties and methods on the server.</p>
<hr />
<h2>Examples</h2>
<p><a target="_blank" href="showasp.asp@filename=demo_lastmodified">When was a file last
modified?</a><br />
Checks when this file was last modified.</p>
<p><a target="_blank" href="showasp.asp@filename=demo_textstream">Open a text file for reading</a><br />
This example opens the file "Textfile.txt" for reading.</p>
<p><a target="_blank" href="showasp.asp@filename=demo_hitcounter">Homemade hit counter</a><br />
This example reads a number from a file, adds 1 to the number, and writes the
number back to the file.</p>
<hr />
<h2>Server Object</h2>
<p>The ASP Server object is used to access properties and methods on the server.
Its properties and methods are described below:</p>
<h3>Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr valign="top">
<th width="25%" align="left">Property</th>
<th width="75%" align="left">Description</th>
</tr>
<tr>
<td valign="top"><a href="prop_scripttimeout.asp">ScriptTimeout</a></td>
<td valign="top">Sets or returns the maximum number of seconds a script can run before it is
terminated</td>
</tr>
</table>
<h3>Methods</h3>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr valign="top">
<th width="25%" align="left">Method</th>
<th width="75%" align="left">Description</th>
</tr>
<tr valign="top">
<td><a href="met_createobject_server.asp">CreateObject</a></td>
<td>Creates an instance of an object</td>
</tr>
<tr valign="top">
<td><a href="met_execute.asp">Execute</a></td>
<td>Executes an ASP file from inside another ASP file</td>
</tr>
<tr valign="top">
<td><a href="met_getlasterror.asp">GetLastError()</a></td>
<td>Returns an ASPError object that describes the error condition that
occurred</td>
</tr>
<tr valign="top">
<td><a href="met_htmlencode.asp">HTMLEncode</a></td>
<td>Applies HTML encoding to a specified string</td>
</tr>
<tr valign="top">
<td><a href="met_mappath.asp">MapPath</a></td>
<td>Maps a specified path to a physical path</td>
</tr>
<tr valign="top">
<td><a href="met_transfer.asp">Transfer</a></td>
<td>Sends (transfers) all the information created in one ASP file to a second
ASP file</td>
</tr>
<tr valign="top">
<td><a href="met_urlencode.asp">URLEncode</a></td>
<td>Applies URL encoding rules to a specified string</td>
</tr>
</table>
<br />
<hr />
<a href="asp_ref_session.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="asp_ref_error.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -