date object in a calendar control

  • Thread starter Thread starter Chumley the Walrus
  • Start date Start date
C

Chumley the Walrus

I keep getting a Parse error: thedate is not a member of Date when
trying to use the below in a calendar control

<% dim thedate
thedate = DateTime.Now() %>

<dc:DataCalendar id="cal1" runat="server" width="50%"
DayField="EventDate"
VisibleDate=thedate
OnVisibleMonthChanged="MonthChange">


????
chumley
 
Hi Chumley,

A better place for aspx scripting is in my opinion
microsoft.public.dotnet.framework.aspnet

When I see this it can be something as

<% dim thedate as date thedate = DateTime.Now() %>
<dc:DataCalendar id="cal1" runat="server" width="50%"
DayField="EventDate"
VisibleDate=<%thedate%>
OnVisibleMonthChanged="MonthChange">

However this is just guessing not knowing.

I hope this helps anyway?

Cor
 

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