javascript asp教程服务器对象

Overview:

The Server Object has seven (7) Methods, one (1) Property, zero (0) Events, and zero (0) Collections.

List of Methods:

Server Methods
CreateObject( )Server.CreateObject("ADODB.Recordset")
Create an instance of an Object
Execute( )Server.Execute("fileName.asp")
Executes an outside file (effect is similar to SSI)
GetLastError( )Server.GetLastError()
Returns location and description of the last ASP error
HTMLEncode( )Server.HTMLEncode("some String")
Encodes string to HTML characters
MapPath( )Server.MapPath("\\virtualFolder")
Converts virtual path to physical path
Transfer( )Server.Transfer("fileName.asp")
Transfers execution out of one page and into another
URLEncode( )Server.URLEncode("some String")
Encodes string to URL standards

相关推荐