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

Problem with Ajax request in COntent Page

5 Answers 92 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
mohammad farahani
Top achievements
Rank 1
mohammad farahani asked on 17 Feb 2013, 08:55 AM
Hi
I have a master page and sevral content page in my project.
after i send my postback and call MasterAjaxManager_AjaxRequest my master page i need call a function in content page but i dont find any solotion.
in all document resolve send AjaxRequest to master page but What i do for send AjaxRequest to content page.also i use AjaxManager.IsAjaxRequest in my content to detect any request but how can determine what is request arg.

in other solotion i call a client function and after that call another functiopn in content page.then send a querystring to my content and detect that in Page_Load. but it not work good.

5 Answers, 1 is accepted

Sort by
0
mohammad farahani
Top achievements
Rank 1
answered on 18 Feb 2013, 06:08 AM
in other try i use AjaxManager.AjaxRequest += AjaxManager_AjaxRequest; for add new handler in content page but in run mode only effect master request!!!
What i do now???
0
Kostadin
Telerik team
answered on 20 Feb 2013, 03:34 PM
Hello Mohammad,

I suggest you to check out the following help topic where is described how to ajaxify and update controls in Master and Content Page.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mohammad farahani
Top achievements
Rank 1
answered on 22 Feb 2013, 07:28 AM
thank for your replay
i read this tips but i think i don't have problem with set ajax in master an content page.but please check my scenario:

i have one master page an several content. i add ajaxManager an scriptManager in master and add also one ajaxManagerProxy in contents.Now when one control send any ajaxResuest to master page i wand send than request to content and call any function in that.
When any ajaxRequest Detect by my AjaxManager and call AjaxManager_AjaxRequest ,i want also detect that request by my content.
but  ajaxManagerProxy dos not have onRequest ?
0
Kostadin
Telerik team
answered on 26 Feb 2013, 02:10 PM
Hi Mohammad,

In case you need to handle the master manager events in the user control or content page, you can attach event handlers to the manager as follows.
protected void Page_Load(object sender, EventArgs e)
{
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
    manager.ClientEvents.OnRequestStart = "onRequestStart";
    manager.ClientEvents.OnResponseEnd = "onResponseEnd";
    manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);
}
protected void manager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
    //handle the manager AjaxRequest event here
}

Check out the following help article for additional information.

Regards,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
mohammad farahani
Top achievements
Rank 1
answered on 01 Mar 2013, 08:43 AM
Thank for your request.It work correctly.
Tags
Ajax
Asked by
mohammad farahani
Top achievements
Rank 1
Answers by
mohammad farahani
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or