473,394 Members | 2,071 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,394 software developers and data experts.

Calendar control issue

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

Oct 6 '06 #1
4 2313
"raghav" <ma********@gmail.comwrote in message
news:11*********************@c28g2000cwb.googlegro ups.com...
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...?
Oct 6 '06 #2
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
Mark Rae wrote:
"raghav" <ma********@gmail.comwrote in message
news:11*********************@c28g2000cwb.googlegro ups.com...
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...?
Oct 6 '06 #3
"raghav" <ma********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
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...
Oct 6 '06 #4
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 ma********@gmail.com
ma********@yahoo.com
Once again sincere thanks for ur help
Regards
Raghav
Mark Rae wrote:
"raghav" <ma********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
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...
Oct 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
7
by: Colin Young | last post by:
I have a UserControl that contains a calendar control. The calendar is not raising events (month navigation, date selections, etc.). I've checked that the OnSelectionChanged event has a handler...
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...
4
by: Nad | last post by:
Hello, I have a user control that has a button and a Calendar. Once you click on the button I display the calendar. Now when I move this user control to a web form, once I click on this button...
2
by: David | last post by:
I am trying to get an image to appear on all Mondays within the calendar control. I also want that image to be a link. How can I do this?
2
by: jodyblau | last post by:
I am trying use a Calendar Control 10.0 in one of my forms. (I am using access 2002) What I want to do is have the user click a button which makes the calendar visible. Then when the user...
6
by: Mike9900 | last post by:
Hello, I want to view the calendar in another culture, for example let it show in Arabic. I use this code in the Main, but the calendar is still in the same culture: CultureInfo sa = new...
3
by: pavanik | last post by:
hey this is pavanik, i had created a pop up calendar control.it is working properly. but the problem is while i click on the button the calendar is displaying but if iam...
6
by: hal | last post by:
Hello All, I got this code somewhere, so i'm not even sure if this is the best way to do this. Basically what i want is to display events in an asp.net calendar control which i'm able to do,...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.