Per accedere alle propriet� ed ai metodi sull'assistente, l'oggetto dell'assistente di asp � usato
Oggetto dell'assistente
Per accedere alle propriet� ed ai metodi sull'assistente, l'oggetto dell'assistente di asp � usato. Le relativi propriet� e metodi sono descritti qui sotto:
Propriet�
Property
Description
ScriptTimeout
Sets or returns the maximum number of seconds a script can run before it is terminated
Metodi
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
Controllare quando questa lima era 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:
This file was last modified on: 9/12/2006 6:40:45 AM
Keywords:
asp server variables, free asp server, asp web server, active server pages