title: SharePoint Webparts and Ajax
body: <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>