roy roy

roy roy

  • NA
  • 27
  • 0

Selecting default date in the calendar control doesn't seem to work

Jul 5 2007 7:27 PM

Hello.
I am writing ASP.NET app using VS2005
I am trying to set default value in the calendar control. but it doesn't seem to work...
My code

 

Code Snippet

DateTime cc = new DateTime(2000,1,1);

Calendar1.SelectedDate = cc;

 

 

Why doens't it selects the day in the calendar control? (I didn't use any formatting options or set any properties. I just dragged and droped the calendar control from the tool box and added the above code to the "Page_Load" method.

 

thank you
Roy