title: "Object expected" error on calling RegisterStartupScript
body: <p>This is a little weird.</p>
  
  <p>I have the following scenario:</p>
  
  <p>A page containing a usercontrol - used for popup. This usercontrol has a placeholder, so I can dynamically load any usercontrol inside this popup. This works great - and all inside ajax updatepanels.</p>
  
  <p>Inside one of the dynamically loaded usercontrols I have a jscript declared as follows:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function setup(){
      alert("test");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>And in the codebehind I have a method with this in it:</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "setup" + Guid.NewGuid().ToString(), "setup();", true);
  </code></pre>
  
  <p>The reason I have a Guid thrown in there, is so it won't bug me, if I call the method more than once.</p>
  
  <p>Now, this method is hooked up to a button. This works GREAT in firefox. But in IE8 it gives me this js error:</p>
  
  <p>"Object expected" on line 197910701 char 1</p>
  
  <p>So I can't even debug it, since obviously that line doesn't exist - any ideas?</p>