Link to home
Start Free TrialLog in
Avatar of Deja Anbu
Deja AnbuFlag for Oman

asked on

Refreshing Asp:Calendar on MasterPage

Hello All,

I have a asp:calendar control which is inside an updatepanel on the masterpage. In content page, i have the interface for adding /deleting/changing events. these changes should be reflected in the asp:calendar located on masterpage.   the functionalities in contentpage are handled in Javascript, so i am calling

__doPostBack('Themasterpage updatepanel's uniqueid' , '')  once event is added/deleted/changed in contentpage.

when i trace, it fires Calendar's Dayrender event, but the calendar shows old data . If i add another event and then trace, then the Calendar shows the previously added event correctly but not showing secondly added event and so on.

(each second time, the calendar shows previously added new event).

i have tried ClientId instead of uniqueId  , - > the same results

also tried having a hidden button on masterpage, and on click of that, calling, updatepanel's update method , instead of dopostback, called document.getelementbyid('btn.clientid').click()  -> the same results come

anyone can suggest what is wrong here?

Any help is greatly appreciated!
Avatar of Kamal Khaleefa
Kamal Khaleefa
Flag of Kuwait image

in code behind of your content page
try to find the control of the calendar and try to set it

   Dim x As Calendar= Me.Page.Master.FindControl("calender id")
then set x to ur value
Avatar of Deja Anbu



i am able to get the referrence of the calendar in masterpage. the problem is Calendar's Day render method should fire and re-draw the calendar.
Avatar of Deja Anbu
Deja Anbu
Flag of Oman image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solved myself