Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Auto Update File.lastModifed
08-09-2007, 09:09 PM #1
- Join Date
- Aug 2007
- Thanked 0 Times in 0 Posts
Auto Update File.lastModifed
I have a list of files that appear on my web page and I would like the update tag to be automatically updated based on the date of the file. As it stands I have to manually enter in the correct date each time the files are changed. Any ideas on how to do this?
<li><a href="literature/Phone List.xls" target="_blank" id="abc">Company Phone List</a><br>Updated July 2007 <img src='images/file_icon.gif' alt='' width='9' height='12' border='0' /></li>
<li><a href="literature/Name and Extensions List.xls" target="_blank" id="abc">Office Names & Extensions</a><br>Updated July 2007 <img src='images/file_icon.gif' alt='' width='9' height='12' border='0' /></li>
1. I have tried the document.lastModified method but it only gives me the date and time of the html page update not the files. My intent is that indiviuals can ftp there files into specific directories that they have access to and the update tag will automaticlly read the file date and show it on the screen. On each page there are multiple files / documents with differnet dates.
2. I have ASP.net setup on the server so I can do it in ASP if someone knows what code to use...
Thanks in advance!
08-10-2007, 12:07 PM #2
- Join Date
- Jun 2002
- London, UK
- Thanked 110 Times in 109 Posts