Pour acc�der � des propri�t�s et � des m�thodes sur le serveur, l'objet de serveur d'asp est employ�
Objet de serveur
Pour acc�der � des propri�t�s et � des m�thodes sur le serveur, l'objet de serveur d'asp est employ�. Ses propri�t�s et m�thodes sont d�crites ci-dessous :
Propri�t�s
Property
Description
ScriptTimeout
Sets or returns the maximum number of seconds a script can run before it is terminated
M�thodes
Method
Description
CreateObject
Creates an instance of an object
Execute
Executes an ASP file from inside another ASP file
GetLastError()
Returns an ASPError object that describes the error condition that occurred/p>
HTMLEncode
Applies HTML encoding to a specified string
MapPath
Maps a specified path to a physical path
Transfer
Sends (transfers) all the information created in one ASP file to a second ASP file
URLEncode
Applies URL encoding rules to a specified string
V�rifier quand ce dossier �tait Last modified
html>
<body>
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set rs = fs.GetFile(Server.MapPath("demo_lastmodified.asp"))
modified = rs.DateLastModified
%>
This file was last modified on: <%response.write(modified)
Set rs = Nothing
Set fs = Nothing
%>
</body>
</html>
O/P :
Ce dossier �tait allum� Last modified : 9/12/2006 6:40 : 45 AM
Keywords:
asp server variables, free asp server, asp web server, active server pages