473,785 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pop Up Calendar Control.

2 New Member
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 not selecting any date in the calendar(when i click on the page),that calendar must be invisible,but it is visible .

I had taken a textbox,button, calendar control.
when i click on that button the calendar must be displayed.that was my design.
while selecting the date it is displaying the date in text box which i have taken.

issue is: clicking on button calendar is displaying,but iam not selecting any date in that calendar,at the same time when i click on the page the calendar must be invisible.but it is visible .

i am not getting any idea.please help me out.
if any body want to send the answer send em to my email address:<email address removed>.
thanks in advance.
pavanik.
Aug 7 '07 #1
3 1642
jhardman
3,406 Recognized Expert Specialist
pavanik,

how about [html]<body onClick="docume nt.all.form3.ca lendarControl.s tyle.visibility ='hidden'">[/html]Jared
Aug 7 '07 #2
pavanik
2 New Member
pavanik,

how about [html]<body onClick="docume nt.all.form3.ca lendarControl.s tyle.visibility ='hidden'">[/html]Jared

hey

calendar.aspx.c s: server side

public partial class calendar : System.Web.UI.P age
{
private void Page_Load(objec t sender, System.EventArg s e)
{
TextBox1.Text = Calendar1.Selec tedDate.ToShort DateString();
}

protected void Button1_ServerC lick(object sender, EventArgs e)
{
Calendar1.Visib le = true;
}
protected void Calendar1_Selec tionChanged(obj ect sender, EventArgs e)
{
TextBox1.Text = Calendar1.Selec tedDate.ToShort DateString();
Calendar1.Visib le = false;
}
}
this is my server side code,in client side just i have taken a button,text box,calendar control.

calendar.aspx: client side

</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
<input type="button" id="Button1" runat="server" value="..." onserverclick=" Button1_ServerC lick" /><br />
<asp:Panel ID="pnlCalendar " runat="server" Style="position : absolute">
<asp:Calendar ID="Calendar1" runat="server" CellPadding="0" Font-Names="Verdana"
Font-Size="8pt" Height="160px" DayNameFormat=" FirstLetter" Width="160px" ShowGridLines=" True" OnSelectionChan ged="Calendar1_ SelectionChange d" SelectedDate="2 007-08-07" Visible="False" VisibleDate="20 07-08-08">
<NextPrevStyl e VerticalAlign=" Bottom"></NextPrevStyle>
<DayHeaderSty le Font-Size="7pt" Font-Bold="True"></DayHeaderStyle>
<SelectedDaySty le Font-Bold="True"></SelectedDayStyl e>
<TitleStyle Font-Bold="True"></TitleStyle>
</asp:Calendar>
</asp:Panel>
</div>
</form>
</body>
</html>

so now the calendar control is visible in design part.i want some thing different that calendar cntrl must not be in design but when i run it and when i click the button it should display the calendar.by doing like this the remaining controls will not be disturbed.
i think u can understand my issue.
thanks 4 reply,
pavani.k.
Aug 8 '07 #3
jhardman
3,406 Recognized Expert Specialist
moved to .NET forum. This is not an ASP issue.
Aug 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3674
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 controls. Private Sub DateSold_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) SoldCal.Visible = True
5
4600
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 Color 3. Foreground Color 4. Border Tickness 5. Border Color
1
2161
by: bill yeager | last post by:
I would like to place the currently selected date (retrieved from the database) on a calendar control which is embedded inside a datagrid. However, I can't find the ID of the control to do so. During the "Edit" command of the grid, I have the following code: <code> If e.CommandName = "Edit" Then Dim myDatagridItem As DataGridItem Dim lblStartDate As Label Dim lblEndDate As Label
0
1746
by: maxrawson | 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 controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
2
3417
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 controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
3
850
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
2634
by: =?Utf-8?B?UGFycm90?= | last post by:
I applied the following Ajax code in my web page which has a calendar control to keep my page from completely reloading everytime something was changed. <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/> <atlas:UpdatePanel runat="server" ID="UpdatePanel1" Mode="Conditional"> <ContentTemplate> After inserting this code, my calendar stopped working in that if I clicked on a date, nothing would...
7
2372
by: John Kotuby | last post by:
Hi all, I am trying to use a calendar server control which I have ID="Calendar1" in the source code. What I am trying to do is emulate a JavaScript calendar that was being used in an older ASP version of the application. The javascript version worked nicely -- you click on a calendar.gif in an anchor next to a textbox. The calender would pop up in a new window, you select the date, the calendar window would close and the textbox would be...
6
1960
by: thorpk | last post by:
I have an access database that i have added a pop up calendar to, the Table information for the Date Reported field is Date/Time format short date, input mask is 00/00/0000. i have created a combo box on the form and have bound the control to the Date Reported field. I have placed the calendar control on the form and set the Visible property to no. The following code has bee added to the Mouse Down Event of the Date
3
2743
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 assist with this. Thanks in advance. I have an access database that i have added a pop up calendar to, the Table information for the Date Reported field is Date/Time format short date, input mask is 00/00/0000.
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10153
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10093
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9952
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.