473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

simple calendar control question

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
3 885
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Graichen | last post by:
Hello, I am making use of the Active X calendar control (mscal.Calendar.7) in several places in my main form, with the following code Below is an example of the code I'm using for the...
5
by: Miguel Dias Moura | last post by:
Hello, i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of: 1. Text Type and Format (Bold, Underline, etc) 2. Background...
2
by: serge calderara | last post by:
Dear all, I have a webform with a calendar control on it. When loaded the calendar is set to the current date. Depending on a criteria from a database field, calendar day cell appears with red...
3
by: Peter | last post by:
Is there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like: January, 2006 February, 2006 ..... .... .... ....
3
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.