Problem with Ajax request in COntent Page

6 posts, 0 answers
  1. mohammad farahani
    mohammad farahani avatar
    7 posts
    Member since:
    Mar 2010

    Posted 17 Feb 2013 Link to this post

    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.
  2. mohammad farahani
    mohammad farahani avatar
    7 posts
    Member since:
    Mar 2010

    Posted 18 Feb 2013 Link to this post

    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???
  3. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 20 Feb 2013 Link to this post

    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.
  4. mohammad farahani
    mohammad farahani avatar
    7 posts
    Member since:
    Mar 2010

    Posted 22 Feb 2013 Link to this post

    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 ?
  5. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 26 Feb 2013 Link to this post

    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.
  6. mohammad farahani
    mohammad farahani avatar
    7 posts
    Member since:
    Mar 2010

    Posted 01 Mar 2013 Link to this post

    Thank for your request.It work correctly.
Back to Top