-
Paul
2
posts
Member since:
Nov 2010
Posted 22 Nov 2010
Link to this post
I have a master page that defines a RadAjaxManager :
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
</telerik:RadAjaxManager>
and in my secondary page I have a button click handler that calls:
RadAjaxManager.GetCurrent(this.Page).Redirect("ManageGroups.aspx");
This fails with a null reference exception since GetCurrent returns null despite there being a RadAjaxManager on the master page. I've tried adding a RadAjaxManagerProxy to the secondary page but that doesn't seem to have any effect. So far the only way I've found to get round this issue is to create an extra RadAjaxManager on the secondary page which isn't very efficient.
This is in a project that was converted from .NET 3.5 to 4.0 just in case that helps point to the issue.
-
-
SamJ
101
posts
Member since:
Jul 2008
Posted 23 Nov 2010
Link to this post
Hi,
Can you specify on which event are you calling the preceding code?
Also, please confirm that on the MasterPage you have a ScriptManager control declaration above this of the RadAjaxManager.
A possible reason for the RadAjaxManager not to be initialized properly is if it is declared before the script manager on the page.
Regards,
SamJ
-
-
Paul
2
posts
Member since:
Nov 2010
Posted 23 Nov 2010
Link to this post
Thanks! I moved the ScriptManager declation to before the AjaxManager and hey presto everything works.
-