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

Adding to AjaxRequest from a child page

1 Answer 58 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 Aug 2008, 08:06 PM
I've had great success with initiating ajax calls from the master page passing an argument and then calling the proper method to invoke the action I want.

But how do I do this from a child of a master page.


The master page has this:
 protected void RadAjaxMasterManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
    {
if (e.Argument == "METHOD")
{
     CallMethod();
}
}

How do I add to this list for a child method so I make calls via javascript.

Thanks

John

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 06 Aug 2008, 09:14 PM
Found it finally.

protected override void RaisePostBackEvent(IPostBackEventHandler source, String eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);
        switch (eventArgument)
        {
            case "Method":
                Method();
                break;
        }
    }
Tags
Ajax
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or