Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Script controls may not be registered before PreRender
posted

I'm adding a WebDropDown control to an existing page and get an error stating "Script controls may not be registered before PreRender"  The page works prior to dropping the control on the form and I've not yet written any code accessing the WebDropDown.  Simply dropping the control on the form and accessing the page causes the error.  The page includes a ScriptManager and inherits from a PageBase class. 

I'm using NetAdvantage 9.1 in VB 2008.

Any help would be appreciated.

Parents
No Data
Reply
  • 570
    Verified Answer
    posted

    Why is it that you can work on a problem for hours and find the answer 20 minutes after posting to this forum?

    The answer is that the pagebase class is overriding the OnPreRender event and needs to make a call to MyBase,OnPreRender(e)

Children
No Data