Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to dismiss Calendar Control when same date is selected

Reply
Thread Tools

How to dismiss Calendar Control when same date is selected

 
 
Rick Lubanovic
Guest
Posts: n/a
 
      10-20-2003
I found a good solution, simply check the Visible state of
the calendar on the ImageButton selection. If the
calendar is showing, hide it, else show it. This will
provide a reasonable way for the user to dismiss the
calendar.

Thanks,
Rick

>-----Original Message-----
>Per the doc, the calendar control will not send the
>SelectionChange event when the same date is selected.
>
>In our application, we have an imagebutton which shows

the
>calendar control to allow the user to select a date to
>fill in a textbox. Once selected the calendar is hidden.
>
>This works well when a new date is selected. However, if
>the user does not wish to select a different date, I need
>to find a way to "dismiss (hide)" the calendar.
>
>If there is another event that can be used, that would be
>great. The other alternative that might work would be a
>onkeypress event to look for enter or escape, then hide
>the calendar. I don't know the exact syntax to hide the
>web control in javascript.
>
>Any help would be appreciated.
>
>Thanks,
>Rick Lubanovic
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
dismiss calendar control on click already-selected date John Grandy ASP .Net 0 06-08-2007 05:42 PM
Get the same selected date from the calendar two consecutive times mg ASP .Net Web Controls 3 06-02-2004 07:33 PM
Get the same selected date from the calendar two consecutive times =?Utf-8?B?bWc=?= ASP .Net 2 06-02-2004 10:21 AM
Calendar Control - Problem with Selected Date Change - Have to Press Twice Michael England ASP .Net 0 11-26-2003 05:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57