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

control Calendar's visibility

VJ
I want to click on the body and make the startCalendar.Visible =
"false"...
but it's not working...
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void startButton_Click(object sender, ImageClickEventArgs
e)
{
startCalendar.Visible = true;
}

}

something like...
protected void calendarClear(object sender, EventArgs e)
{
startCalendar.Visible = false;
}

and place it in on the <body onclick="calendarClear">
..</body>

thanks

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Feb 7 '06 #1
1 1142
DWS
VJ,
Let me get this straight you want to click any where on the page and make
the calendar visible. Sorry, the body element does not direcly support
aspnet click events. You'd have to do it with java script. An alternative
would be to make the startbutton toggle the visibility of the calendar.
Note: I'm not c# wizzard. startcalenar.visible = not startcalendar.visible
protected void startButton_Click(object sender, ImageClickEventArgs e)
{
startCalendar.Visible = ! startcalendar.visible
}

Good Luck
DWS

"VJ" wrote:
I want to click on the body and make the startCalendar.Visible =
"false"...
but it's not working...
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void startButton_Click(object sender, ImageClickEventArgs
e)
{
startCalendar.Visible = true;
}

}

something like...
protected void calendarClear(object sender, EventArgs e)
{
startCalendar.Visible = false;
}

and place it in on the <body onclick="calendarClear">
..</body>

thanks

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Feb 9 '06 #2

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

Similar topics

10
by: vinu | last post by:
I have a javascript file named select.js. This is a file which is use to pop up a calendar, when clicked on a calendar icon in an ASP file. have a close button in the calendar. When i click on the...
4
by: Iain Porter | last post by:
Hi all, I have a usercontrol (a textbox with dropdown calendar that fills the textbox with the selected date) that I implement in a datagrid in a webform. On first loading the page, the datagrid's...
2
by: ruca | last post by:
Hi, I have a user control that have a textbox, a imagebutton and a calendar control's. No hard to see that this usercontrol is a calendar. What happens is that when I click in imagebutton teh...
1
by: Frank Bishop | last post by:
I have a user control that will open and close the calendar control when the user clicks on an anchor tag. Instead of having the user remember to close the calendar after they make a day selection,...
5
by: Ben | last post by:
I have a javascript code in the ASP.NET page. I want to access Calendar control that is inside ASP page and is "run at server". I try to use following code but it doesn't work. <script...
4
by: raghav | last post by:
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...
7
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...
3
by: John Kotuby | last post by:
Hi all, Just wondering. I am converting an ASP application to ASP.NET 2.0. The ASP version used a JavaScript Calendar that would pop up on the client side and populate various text fields with...
7
by: ajaydesai | last post by:
I have JavaScript code to dispaly two month calendar days at a time, but i have a problem both month that disaplay at a time have same days (for example May and June has same days, June and July have...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
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...

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.