Skip to content

Script controls may not be registered before PreRender

by Wayne Denier on January 25th, 2010

This ended up being really simple. The page had a few UpdatePanels and a master page containing the ScriptManager. I went to add an UpdateProgress control and got the error…

Script controls may not be registered before PreRender

If you’ve gotten this error, before you go to explore the other possibilities, check to see if you’ve overridden the OnPreRender method for your page. If so, make sure that you’ve included base.OnPreRender(e); up in the method somewhere. If this didn’t help, there are a number of other scenarios where this could happen and article about them on the internets.

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS