Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Script controls may not be registered before PreRender.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.<br />
Exception Details: System.InvalidOperationException: Script controls may not be registered before PreRender.<br />
Source Error:<br />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.<br />
Stack Trace:<br />
[InvalidOperationException: Script controls may not be registered before PreRender.]<br />
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236<br />
   System.Web.UI.Timer.OnPreRender(EventArgs e) +75<br />
   System.Web.UI.Control.PreRenderRecursiveInternal() +86<br />
   System.Web.UI.Control.PreRenderRecursiveInternal() +170<br />
   System.Web.UI.Control.PreRenderRecursiveInternal() +170<br />
   System.Web.UI.Control.PreRenderRecursiveInternal() +170<br />
   System.Web.UI.Control.PreRenderRecursiveInternal() +170<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Posted
Updated 26-Jul-11 20:32pm
v2

1 solution

 
Share this answer
 
Comments
aftab5124 27-Jul-11 3:10am    
I have follow the link and do the as per the link say,
Despite this same problem...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900