Deja Anbu
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('Themasterpag e 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('b tn.clienti d').click( ) -> the same results come
anyone can suggest what is wrong here?
Any help is greatly appreciated!
calendar.png
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('Themasterpag
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('b
anyone can suggest what is wrong here?
Any help is greatly appreciated!
calendar.png
ASKER
hi,
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solved myself
try to find the control of the calendar and try to set it
example:
Dim x As Calendar= Me.Page.Master.FindControl
then set x to ur value