Results 1 to 2 of 2
Thread: LastModified function C#
Mar 25, 2008, 08:29 #1
LastModified function C#
The Script is suppose to show the modified date and instead is showing current date when I used in a .Net Page using Master Page.
I will like to know if there is a Similar Script C# that I can put in my code behind page and assign the value to a label control on the page.
<!-- hides script from older browsers
document.write("Last updated " + (document.lastModified))
// end hiding -->
"I know nothing except the fact of my ignorance."
Apr 1, 2008, 13:10 #2
- Join Date
- Mar 2005
- 0 Post(s)
- 0 Thread(s)
Why do you want to put it into a label control?
Look here: http://www.codeproject.com/KB/aspnet/LastModified.aspx
But if you want...you can use FileInfo.modifiedDate property of the file in context.
Should work, atleast -Ive been doing Coldfusion lately.Web Application Development & Maintenance