ASP.NET Calendar control's selected date

G

Guest

Hi

Is it possible that in the asp.net calendar control the selected date would be by default current day. I mean that user would not have to click todays date if the user wants to pick it but current date would be selected by default

thanks

Peter
 
P

Philip Q [MVP]

Peter said:
Hi!

Is it possible that in the asp.net calendar control the selected date would be by default current day. I mean that user would not have to click todays date if the user wants to pick it but current date would be selected by default.

thanks,

Peter

In your Page_Load, try setting it up like -

myCal.SelectedDate = DateTime.Now()
 

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top