473,385 Members | 1,834 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,385 software developers and data experts.

How do I ... Make the Calendar pop up over other controls

Hello,
I would like for my users to have a calendar control
only when needed. IE button click for the control to
appear and then once the date is selected. Populate a text
box and the calendar control then is invisible.
How do I make the calendar control pop up over other
control in a asp.net c# environment?

Charles

Nov 15 '05 #1
5 4296

Hi Charles,

You can use client script to set the calendar's left and top to the same as
the button.
When loading page, the calendar is invisable, in the button's click event,
you can
set the button to invisable and the calendar to visable.
In calendar's SelectionChanged event, you set the calendar invisable again
and button visable.
The selected result display in the text box.

But I think it is a better way of place the calendar into a individual
<div> tag and show it and set its
position in the button's click event.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Charles" <CW******@bellsouth.net>
| Sender: "Charles" <CW******@bellsouth.net>
| Subject: How do I ... Make the Calendar pop up over other controls
| Date: Mon, 29 Sep 2003 21:08:49 -0700
| Lines: 10
| Message-ID: <12****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOHCIzsNOywYW3JTBicMm8x7lCcBw==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:188112
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
| I would like for my users to have a calendar control
| only when needed. IE button click for the control to
| appear and then once the date is selected. Populate a text
| box and the calendar control then is invisible.
| How do I make the calendar control pop up over other
| control in a asp.net c# environment?
|
| Charles
|
|

Nov 15 '05 #2
Hello,

Thanks for responding, could you be more specific? I have to see the
code, concepts don't work for me.
Also, the results textbox needs to be an asp:TextBox runat server.

Charles


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3
Hi Charles,

You can include your calendar inside a <div> tag and set the visibility
style of it hidden, then on the click of the button you will change the
visibility to visible.
now you will have to play a little with the interaction between server side
code and client side code to do this. It's not difficult though. basically
what you need is set the onclick action of the button toa function that
change the visibility of the div , if you use only one calendar by page then
this div can have a predefined ID so the javascript function may look like:

function ChangeVisibility( show )
{
if ( show )
document.all[ "Div Name"].style.visibility = visible;
else
document.all[ "Div Name"].style.visibility = hidden;
}

and you will need two more functions:
one for the button click to show the calendar:
function ShowCalendar()
{
//set back the date from the textbox to the calendar
...
//show the calendar
ChangeVisibility(true);
}

and another for get back the value and hide it:
function HideCalendar()
{
//get the value fmro the calendar and put it back in the input box
...

ChangeVisibility(false);
}

This is basically it, of course you still need to fill the ... sections but
that is where the fun is :)
Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Charles" <CW******@bellsouth.net> wrote in message
news:12****************************@phx.gbl...
Hello,
I would like for my users to have a calendar control
only when needed. IE button click for the control to
appear and then once the date is selected. Populate a text
box and the calendar control then is invisible.
How do I make the calendar control pop up over other
control in a asp.net c# environment?

Charles

Nov 15 '05 #4

Hi Charles,

I think what Ignacio said is clear to implement your logic.
But I think you also should set the div's postion properly in script code,
such as: you may need the div to follow the move of your mouse, you can get
this down by handle the onmousemove event. There are many script samples on
the internet, you can search easily.

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Charles Wildner <cw******@bellsouth.net>
| References: <aZ**************@cpmsftngxa06.phx.gbl>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: RE: How do I ... Make the Calendar pop up over other controls
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <#w*************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Date: Tue, 30 Sep 2003 04:41:08 -0700
| NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:188176
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
|
| Thanks for responding, could you be more specific? I have to see the
| code, concepts don't work for me.
| Also, the results textbox needs to be an asp:TextBox runat server.
|
| Charles
|
|
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!
|

Nov 15 '05 #5

Hi Charles,

Is your problem resovled?

If you still have any unclear, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| X-Tomcat-ID: 95425438
| References: <aZ**************@cpmsftngxa06.phx.gbl>
<#w*************@TK2MSFTNGP10.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| Organization: Microsoft
| Date: Thu, 02 Oct 2003 03:57:39 GMT
| Subject: RE: How do I ... Make the Calendar pop up over other controls
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <R4**************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 43
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:188483
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
|
| Hi Charles,
|
| I think what Ignacio said is clear to implement your logic.
| But I think you also should set the div's postion properly in script code,
| such as: you may need the div to follow the move of your mouse, you can
get
| this down by handle the onmousemove event. There are many script samples
on
| the internet, you can search easily.
|
| Hope this helps,
| Best regards,
| Jeffrey Tan
| Microsoft Online Partner Support
| Get Secure! - www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
| --------------------
| | From: Charles Wildner <cw******@bellsouth.net>
| | References: <aZ**************@cpmsftngxa06.phx.gbl>
| | X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| | Subject: RE: How do I ... Make the Calendar pop up over other controls
| | Mime-Version: 1.0
| | Content-Type: text/plain; charset="us-ascii"
| | Content-Transfer-Encoding: 7bit
| | Message-ID: <#w*************@TK2MSFTNGP10.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | Date: Tue, 30 Sep 2003 04:41:08 -0700
| | NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
| | Lines: 1
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:188176
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| | Hello,
| |
| | Thanks for responding, could you be more specific? I have to see the
| | code, concepts don't work for me.
| | Also, the results textbox needs to be an asp:TextBox runat server.
| |
| | Charles
| |
| |
| |
| |
| | *** Sent via Developersdex http://www.developersdex.com ***
| | Don't just participate in USENET...get rewarded for it!
| |
|
|

Nov 15 '05 #6

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

Similar topics

7
by: Dennis M. Marks | last post by:
Before you say anything I know that there are many monthly calendars out there. I did it for the challenge. My calendar was COMPLETLY done from scratch with no copied code except for the dynamic...
3
by: | last post by:
Hi!! Did Infragistics or some other company else provide a web calendar conrol with the features and look of Microsoft Outlook calendar? I mean that feature that you can choose Day / Work Week /...
2
by: Chuck Hartman | last post by:
I've been trying to add an ImageButton object to a Calendar table cell, but so far I am unable to handle the Command event from that button in my form's code behind. Below is an example of what I...
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: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
27
by: Dino M. Buljubasic | last post by:
I'd like to build a calendar displaying all days in a month in a grid so that when I click on the header of a square representing a day of month, I can add a new meeting etc. I know that .net...
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...
7
by: Vincent | last post by:
Does anyone know of any good 3rd party calendar controls that can be used in VBA? I am trying to find a calendar control that will allow you to select multiple dates at once or a range of dates,...
7
by: Flodpanter | last post by:
Ive read and used the dropdown calendar found at http://steveorr.net/articles/DropDownCalendar.aspx It works just fine except when it drops down over other wiondowed controls such as a drop down...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.