Putting a date in a .ASPX page

  • Thread starter Thread starter BoBo the monkey
  • Start date Start date
B

BoBo the monkey

I'm switching some .ASP files over to .ASPX. Some of those .ASP pages
had the current date posted in them using:

**************************
<%=Date()%> or <%=Now()%>
**************************

and they worked just fine, but once I changed them to .ASPX, i get an
error like this:

**************************
Compiler Error Message: CS0103: The name 'Date' does not exist in the
class or namespace 'ASP.mypage_aspx'
**************************

How do I call the date on an .ASPX page?
 
Back
Top