0
Answer

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

roy roy

roy roy

17y
2.9k
1

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