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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top