<%@ Import Namespace="System.IO" %>
<script language="VB" runat="server">
sub Page_Load(Sender as Object, e as EventArgs)
dim f as new FileInfo(Server.MapPath("test.aspx"))
lblMessage.Text = "File information<br>" & _
"<b>Name: </b>" & f.Name & "<br>" & _
"<b>Path: </b>" & f.DirectoryName & "<br>" & _
"<b>Last access time: </b>" & f.LastAccessTime & _
"<br>" & _
"<b>Last write time: </b>" & f.LastWriteTime & _
"<br>" & _
"<b>Length: </b>" & f.Length & " bytes"
end sub
</script>
<html><body>
<asp:label id="lblMessage" runat=server/>
</body></html>
|