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
 
Back
Top