By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,530 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,530 IT Pros & Developers. It's quick & easy.

simple calendar control question

P: n/a
How can I check to see if they selected something?

if mycal.selecteddate="" gives an error invalid cast from string to date or
something
what is the proper way to check this

Thanks,

Shane
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I just decided to set
..selecteddate=.todaysdate property

but still when calendar first loads it doesn't show a selection and appears
we could check if they made one.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
How can I check to see if they selected something?

if mycal.selecteddate="" gives an error invalid cast from string to date or something
what is the proper way to check this

Thanks,

Shane

Nov 18 '05 #2

P: n/a
You can use

if(cal.SelectedDates.Count>0) ......

"SStory" wrote:
I just decided to set
..selecteddate=.todaysdate property

but still when calendar first loads it doesn't show a selection and appears
we could check if they made one.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
How can I check to see if they selected something?

if mycal.selecteddate="" gives an error invalid cast from string to date

or
something
what is the proper way to check this

Thanks,

Shane


Nov 18 '05 #3

P: n/a
Hey great solution.
I will try that.

Never thought of it.

Shane

"Y.Argon" <Y.*****@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
You can use

if(cal.SelectedDates.Count>0) ......

"SStory" wrote:
I just decided to set
..selecteddate=.todaysdate property

but still when calendar first loads it doesn't show a selection and appears we could check if they made one.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
How can I check to see if they selected something?

if mycal.selecteddate="" gives an error invalid cast from string to
date or
something
what is the proper way to check this

Thanks,

Shane


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.