Date Time .ASPX (old .asp used <%now%>)

  • Thread starter Thread starter Joshua C. Clark
  • Start date Start date
J

Joshua C. Clark

In ASP I used to be able to use <% now %> to pass the date and time. How is
this achieved in .ASPX? I cannot seem to figure this one out.. Thanks in
advance!
 
It was likely <%=now()%> and it still works... (= is a shortcurt for
Response.Write).

The prefered method though in ASP.NET is likely to use a control such as a
label and to fill its text property (IE. a programming model that is similar
to that of a Win32 application).
 
Works thank you!

Patrice said:
It was likely <%=now()%> and it still works... (= is a shortcurt for
Response.Write).

The prefered method though in ASP.NET is likely to use a control such as a
label and to fill its text property (IE. a programming model that is similar
to that of a Win32 application).
 
Back
Top