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

[Solved] Catching a RaisePostBack in the Master Page

1 Answer 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 09 Oct 2009, 04:32 AM
Hi,

I'm wanting to throw a __DoPostBack or a telerik ajax call from a master page and catch it with the master page's RaisePostBackEvent method. At the moment it gets thrown from the master page though the content pages also have a RaisePostBackEvent method and these are what are catching my Master Page's postback.

I'm wondering if there is a way to use the ajax telerik control client-side to throw a postback straight to the master page's RaisePostBackEvent method.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 15 Oct 2009, 05:56 AM
Hello Peter,

The master page does not have a RaisePostBackEvent method as it does not inherit from the Page class. Perhaps, you need to trigger from the client the postback event of a specific control on your page, e.g. the click event of a button. If this is the case, you can use the RadAjaxManager's ajaxRequestWithTarget() client method. More information on the latter can be found in the following help article:
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

I hope this information helps.

Best wishes,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or