Last edited date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, is there a way in which one can write the last edited date in a .aspx
file onto a pae without physically writing e.g.
<%response.write(request.datetime...)%>

thanks a bundle
 
Yes, this code should do it:
' Imports System.IO

Dim fileData As FileInfo = My.Computer.FileSystem.GetFileInfo(sFileName)

lblLastUpdated.Text = fileData.LastWriteTime.ToLongDateString
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top