Calendar control issue

R

raghav

Hi Friends
I am having very small issue. I am using calendar control which is
available in .net 2005 to display date. When a user clicks on image
button, calendar is opening very well. He selects a date and date is
very well dropped in text box and inserted in DB. But if user is
clicking on image button, calendar is opening. If he is not selecting
any date and wants that calendar window should close, its not
happening. Even if he clicks on other places on the page. So, how that
calendar window can be closed if user does not want to select any
date?? I hope u understood the issue

Regards
Raghav Mahajan
 
M

Mark Rae

So, how that calendar window can be closed if user does not
want to select any date?? I hope u understood the issue

Are you displaying the calendar control in a new window...?
 
R

raghav

Hi Mark
I am not displaying it in new window. I am using a image button, after
clicking that image button Calendar is displayed. In other words u can
say that calendar control is dragged and dropped on same page just i
have made visibility true once the image button is clicked.
Regards
Raghav
 
M

Mark Rae

I am not displaying it in new window. I am using a image button, after
clicking that image button Calendar is displayed. In other words u can
say that calendar control is dragged and dropped on same page just i
have made visibility true once the image button is clicked.

Hmm - presumably the image button initiates a postback which sets the
Calendar's Visible property to true...?

In which case, you're going to need somehow to initiate another postback to
set its Visible property to false again.

I have a "popup" calendar control which runs entirely client-side using
JavaScript, so none of this is a problem - I can send it to you if you
like...
 
R

raghav

Hi Mark
First of all thanks for ur efforts. After doing some experiments, I
reached a stage where i can close the calendar (if date is not
selected) by clicking on the same image button which was used to open
it. But the point is that how user will know this that he has to click
on image button to close it. This calendar conntrol had some drawbacks
like if i have to select year 1995, i have to go one one step back. So
I think the Java script calendar u have will be having drop down list
to select year and close button too. So u can send me that javascript
code. Just let me know that what changes I should make in that code to
make it work like pasing ID of text box in which date will be dropped
etc etc.
Send me on (e-mail address removed)
(e-mail address removed)
Once again sincere thanks for ur help
Regards
Raghav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top