<p>Please, I am new to webparts and I need help!!</p>

<p>I have a custom web part that I created. I added MS Ajax to it using an UpdatePanel which works fine. I add all my controls to the CreateChildControls method. As soon as I add a UpdateProgress control my page breaks with the following error:</p>

<p>Script controls may not be registered before PreRender</p>

<p>I do not use the OnPreRender event as what other posts suggest. Please, if anyone can give me advice it will be very much appreciated.</p>

<p>Thanks</p>

You might have forgotten to call the base method of an overrided event, which is not necessarily the OnPreRender event.
Check if the OnInit or OnLoad events are calling their base.On[...] method, e.g.:
```
```
protected override void OnLoad(EventArgs eventArgs)
{
    base.OnLoad(eventArgs);

    // your code...
}
```
```