locked
Script controls may not be registered before PreRender. RRS feed

  • Question

  • 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.

    Exception Details: System.InvalidOperationException: Script controls may not be registered before PreRender.

    Source Error:
    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.

    Stack Trace:

    [InvalidOperationException: Script controls may not be registered before PreRender.] System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +239 Telerik.Web.UI.RadCompositeDataBoundControl.RegisterScriptControl() +106 Telerik.Web.UI.RadCompositeDataBoundControl.ControlPreRender() +34 Telerik.Web.UI.RadGrid.ControlPreRender() +46 Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +44 System.Web.UI.Control.PreRenderRecursiveInternal() +90 System.Web.UI.Control.PreRenderRecursiveInternal() +163 System.Web.UI.Control.PreRenderRecursiveInternal() +163 System.Web.UI.Control.PreRenderRecursiveInternal() +163 System.Web.UI.Control.PreRenderRecursiveInternal() +163 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906

    Please advice me about this error .im not using any control metioning in that error.. using only rad grid control

    Monday, August 17, 2020 8:34 AM

All replies

  • any body can help me ...
    Monday, August 17, 2020 8:51 AM
  • Hi Jishi0786,

    Thank you for posting here.

    Since your question is related to ASP.NET. Therefore, it will be more appropriate to ask your question in ASP.NET forum for more efficient responses. 

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 18, 2020 1:26 AM