473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why is Calendar rendering when behind an UpdatePanel?

yarbrough40
320 Contributor
Gang, I have 2 calendar controls. Both within their own update panels. Why is it that both DayRender events (for both calendars) fire when an event is triggered from within either panel? - I would like for the dayrender event for ONLY the one calendar to be fired - not both.

What am I doing wrong here?

here is the simple layout
Expand|Select|Wrap|Line Numbers
  1.  <table>
  2.  <tr><td>
  3.      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  4.     <ContentTemplate>
  5.         <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
  6.  
  7.     </ContentTemplate>
  8.     </asp:UpdatePanel>
  9.  </td></tr>
  10.  
  11.  <tr><td>
  12.      <asp:UpdatePanel ID="UpdatePanel2" runat="server">
  13.     <ContentTemplate>
  14.         <asp:Calendar ID="Calendar2" runat="server"></asp:Calendar>
  15.  
  16.     </ContentTemplate>
  17.     </asp:UpdatePanel>
  18.  </td></tr>
  19.  
  20.  </table>
try for yourself... click any event within Calendar1 and DayRenderCalendar1() AND DayRenderCalendar2() will both fire... (and vice-versa) hmmmm
Jan 12 '13 #1
1 2015
yarbrough40
320 Contributor
found my answer....
UpdateMode="Conditional"

Expand|Select|Wrap|Line Numbers
  1. <asp:UpdatePanel ID="update1" runat="server" UpdateMode="Conditional">
Jan 12 '13 #2

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

Similar topics

0
2270
by: listaction | last post by:
Hello All, I'm trying to avoid use of tables for layout purposes. So I have the layout positioned using css and <div>. When the browser window is resized by clicking & dragging the mouse, the text...
0
1164
by: chris | last post by:
Hi there I want to create a UserControl which simply uses a textbox and a calendar. The calendar's visibility is set to false. If I click the ImageButton the Calendar is visible. When you select a...
2
1418
by: ajaymehra | last post by:
Hi, Im using a calendar control and on the dayrender event - I call m sub, which runs a query and gets a SUM value for each day. Below is th code ...
2
1759
by: Trond | last post by:
I'm having a problem when creating several calendars in a web form. Here's a snippet of my code: ****************************** public string username; private void CreateCalendars() {...
1
1568
by: Ben Amada | last post by:
Hi, I'm using the built-in calendar control. One problem I'm having is that if the user clicks on the day in the calendar which is already the SelectedDate, a postback occurs, but the...
3
1922
by: i3enners | last post by:
Hello I am having problems with the ASP.Net calendar control. I have a style i apply to the selected date which works fine if i load the page then click on a date but when i set the selected date...
4
15250
by: BillE | last post by:
Can I make the Ajax calendar extender appear on top of dropdown lists instead of behind them? Thanks Bill
4
1185
by: =?Utf-8?B?S2V2aW4=?= | last post by:
Hi! How to know when a UpdatePanel ends a update? Is there some javascript handler or function? Thanks!
2
12208
by: qwedster | last post by:
Folks! The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back...
2
2629
by: Toniyo Jackson | last post by:
Hi, Am using calendar extendar to select the date. Based on date am showing the records in pdf using iframe. after showing the record if i click the date calendar is going behind the iframe....
0
7194
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
7070
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
7316
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...
1
6976
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...
0
4666
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...
0
3160
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
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 ...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.