I need to get the name of the script being executed on the master page to update the Last Write time.
I'm using this:
System.IO.File.GetLastWriteTime(Server.MapPath(Request.FilePath))
which works for the default.aspx, but if its within a View I am unable to workout what the physical path to the file is to get the LastWriteTime.
Is there a solution to this? Surely I'm missing something incredibly easy here.
Thanks!