DateTime.Now Not Printing to Label, SOS!

Discussion in 'Site Programming, Development and Design' started by jglow01, Jul 18, 2011.

  1. I don't understand what the issue is, but when ever I run this:

    -----

    DateTime dt = DateTime.Now;
    lblTime.Text += Convert.ToString(dt);


    lblTime.Text shows nothing!

    -----

    When I run it on LocalHost, it works as you would expect.

    Am I missing something??:mad:
     
  2. PS. This is ASP.Net 4.0 in c#

     
  3. Where are you putting this? In your Page load?
     

Share This Page