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

RadAjax - Update a User Control from the Page

1 Answer 25 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 23 Mar 2011, 12:03 AM
Hi, I am struggling with what I assumed would be a simple task.  Essentially, in its simplest form it boils down to this...

  1. We have a master page with a scriptmanager.
  2. Using that master page we have a web form with a button on it.
  3. Within the web form is a user control that accepts a public property.  When we load the page, we pass the user control a default value for its public property.
  4. When we click the button it passes the user control a new value for its public property and updates the user control (using AJAX).

Help!?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Mar 2011, 04:00 PM
Hello Tony,

In your case I would suggest you to add RadAjaxManager on the MasterPage and get reference to this AjaxManager in the web form. There in code behind you could use this reference to programmatically add setting in which the Button updates the UserControl.
I would suggest you to review the following online resources which elaborate on this matter:

http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html
http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html
http://www.telerik.com/help/aspnet-ajax/ajax-masterpage-update-everywhere.html
http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html

I hope this helps.


Best wishes,
Maria Ilieva
the Telerik team
Tags
Ajax
Asked by
Matt
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or