This is a migrated thread and some comments may be shown as answers.

Updating placeholder control on master page from child in codebehind?

1 Answer 130 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
DH
Top achievements
Rank 1
DH asked on 22 Nov 2014, 04:23 PM
I'm having an issue trying to update an ajaxpanel that contains a placeholder on a master page from the child page. 

In my master page, i expose the panel to the child page. The panel is wrapped in an ajaxpanel.

In the child page, I may have a button that does some function within its own ajaxpanel, the codebehind for that button will change the panel in the parent page, however the ajax panel on the parent page does not update.

Is there a better way to to do this?

My end result is to have a set of status-notifications (error, success, info, etc) on the master page that can easily be called from child pages within the application without the need for client-side scripting. 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Nov 2014, 02:17 PM
Hello Dan,

Note that when implementing Ajax functionality in Master/Content Page application as well as in case if UserControl usage we always recommend using RadAjaxManager control as it provides more flexible way for adding Ajax setting across the different pages.

See the help topics below for more information  on this matter:

http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html
http://www.telerik.com/help/aspnet-ajax/ajax-load-control-from-another-webusercontrol-in-different-masterpage-contentplaceholder.html
http://www.telerik.com/help/aspnet-ajax/ajax-masterpage-update-everywhere.html


Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
DH
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or