Showing posts with label vs2005i. Show all posts
Showing posts with label vs2005i. Show all posts

Thursday, March 22, 2012

Set Minimum Date Calendar Control

Does anyone know how to set a minimum selectable date in the calendar
server control that come with VS2005?

I do not want to use validators...I want the days before the selectable
period to be grayed out.Wow. I guess most people do not use this control. I am now wishing I
had some funds to purchase a date control that is actually useful!

I'll try another Q: How do I make a date to show as selected/shaded
(preselect) when the calendar is rendered on my web page? I tried
setting both the "TodaysDate" and "SelectedDate" properties with code.
I then set a breakpoint and verified that this is happening...but the
user still has to click on the day in the calendar to get it to show as
selected/shaded. Does anyone have any ideas?

Joey wrote:
> Does anyone know how to set a minimum selectable date in the calendar
> server control that come with VS2005?
> I do not want to use validators...I want the days before the selectable
> period to be grayed out.
Got the second Q answered. I was setting those properties to DateTime
variables which had values like "1/1/2006 4:24:23 PM". Once I changed
them to "1/1/2006 12:00:00 AM" it worked...strange.

Still working on the first Q.
Does that mean that you don't need to have
"funds to purchase a date control that is actually useful" ?

;-)

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Joey" <joey.powell@.topscene.com> wrote in message
news:1142452273.636929.143820@.e56g2000cwe.googlegr oups.com...
> Got the second Q answered. I was setting those properties to DateTime
> variables which had values like "1/1/2006 4:24:23 PM". Once I changed
> them to "1/1/2006 12:00:00 AM" it worked...strange.
> Still working on the first Q.