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

Logout - Master Pages - Register Script Error

1 Answer 86 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Mark asked on 29 Jan 2009, 10:11 AM
We have main Master Page with other Master Pages derived from it with the content pages then underneath.
On the main Mater we have a logout control. I placed the RadScriptManager on the main Master page but when I log out I get

Script controls may not be registered before PreRender.

[InvalidOperationException: Script controls may not be registered before PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +99
   Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +41
   Telerik.Web.UI.RadPanelBar.OnPreRender(EventArgs e) +34
   System.Web.UI.Control.PreRenderRecursiveInternal() +86


Suggestions?

1 Answer, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 2
answered on 02 Feb 2009, 12:38 PM
I have resolved this by explicitly adding:

 

FormsAuthentication.SignOut();

 

 Response.Redirect(

login page  true);

in the LoggingOut event handler

 

 

 

 

 

Tags
ScriptManager and StyleSheetManager
Asked by
Mark
Top achievements
Rank 2
Answers by
Mark
Top achievements
Rank 2
Share this question
or