SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast edones's Avatar
    Join Date
    Mar 2005
    0 Post(s)
    0 Thread(s)

    Question LastModified function C#

    I have this javaScript in a .NET Page that uses MasterPage.
    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.

    Here is the JavaScript:
    <script language="javascript" type="text/javascript">
    <!-- hides script from older browsers
    document.write("Last updated " + (document.lastModified))
    // end hiding -->

    Liz Dones
    "I know nothing except the fact of my ignorance."

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2005
    0 Post(s)
    0 Thread(s)
    Why do you want to put it into a label control?

    Look here:

    But if you can use FileInfo[].modifiedDate property of the file in context.

    Should work, atleast -Ive been doing Coldfusion lately.
    Web Application Development & Maintenance


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts