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