Hi,
Can I set a value for a WebDateChooser other than between MaxDate and MinDate.
I have a WebDateChooser with mindate and maxdate set. In Runtime from my database I'm getting the date from the database which is not in the the mindate and maxdate range.
So the webdatechooser is not setting any value because it is out of range.
I don't want to loose my original date from my DB. Can I achieve this?
Thanks in advance
Nevermind...
See the correct property is WebDateChooser1.MaxDate = DateTime.Today
not
WebDateChooser1.CalendarLayout.MaxDate = DateTime.Today
Not clear what
does.
WebDateChooser.v8.3, Version=8.3.20083.1009 CLR 2.0
Using as a drop down webchooser.
MinDate and Max Date work fine declaratively but not from the code behind.
So:<igsch:WebDateChooser ID="WebDateChooser1" runat="server" MaxDate='2009-09-30'/>Work Fine
BUT
this
.WebDateChooser1.CalendarLayout.MaxDate = DateTime.Today;Called from the Page_Load event does not work.
What am I missing
sapineni,
The only way to accomplish this would be to modify your MinDate or MaxDate to allow the value from the database to be inserted into the WebDateChooser. If you have set your MinDate and MaxDate, the control will only take values that are within that date range.
~Kim~