Calendar Control Question!

V

Vai2000

Hi All, I have an SQL Query [through SQL Data Source] which uses Calendar
Control value for date selection on asp.net 2.0 Application.
How can I select default value of the Calendar Control to be today's date?

TIA
 
M

MattB

Vai2000 said:
Hi All, I have an SQL Query [through SQL Data Source] which uses Calendar
Control value for date selection on asp.net 2.0 Application.
How can I select default value of the Calendar Control to be today's date?

TIA

I thk you just have to explicitly set it.
I'd do it in page_load in a If Not IsPostBack block.
Something like MyCalendar.SelectedDate = Date.Today.

HTH

Matt
 
V

Vai2000

thanks, I want to set it in Designer only, don't intend to write a single
line of CODE


MattB said:
Vai2000 said:
Hi All, I have an SQL Query [through SQL Data Source] which uses Calendar
Control value for date selection on asp.net 2.0 Application.
How can I select default value of the Calendar Control to be today's date?

TIA

I thk you just have to explicitly set it.
I'd do it in page_load in a If Not IsPostBack block.
Something like MyCalendar.SelectedDate = Date.Today.

HTH

Matt
 
M

MattB

Vai2000 said:
thanks, I want to set it in Designer only, don't intend to write a single
line of CODE

Well, good luck with that. Let us know how it goes...

Matt
 

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

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top