Script controls may not be registered before PreRender – Before you go crazy

It’s quite common losing hours and hours on a pretty obvious mistake, plus in this case the internet hasn’t helped me that much.

The problem: I have an asp.net (content) page that’s using a master page. In this content page I have an update panel. Everything is working fine until I add an UpdateProgress. Opening the page i get a friendly Script controls may not be registered before PreRender .

Before trying some voodoo stuff…check the OnPreRender event. Does it call the same event in the base page?

base.OnPreRender(e);

Is it working now?

Keep coding and happy new beer to all of you.

Advertisement

One Response to “Script controls may not be registered before PreRender – Before you go crazy”

  1. Jonnylose Says:

    You’re my hero!!
    I was losing a lot of time with an inherited code but I never thought that didn’t call the base…
    Thanks a lot.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.