title: RegisterClientScriptBlock within an Update Panel PostBack
body: <p><em>ASP.NET VB PostBack within an Update Panel</em></p>
  
  <p>I'm trying to have a JS function load on this error (closes Loading overlay &amp; pop-up w/ error should come up).  When I try to display the label it works without a problem (of course it's covered by the overlay).</p>
  
  <pre><code>Me.lblerrormsg.Visible = True 
  </code></pre>
  
  <p>I've tried 3 different approaches I've found for Registering a Script:</p>
  
  <pre><code>Dim errorScript = "&lt;script&gt;alert('WTF');&lt;/script&gt;" '&lt;-- not even this works
  
  Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "errorDemoManual",
       errorScript, True)
  
  'Tried this one with the Panel &amp; Page itself...
  ScriptManager.RegisterStartupScript(pnlPatientInfo, pnlPatientInfo.GetType(), 
       "ErrorDemo", errorScript, True)
  
  ScriptManager.RegisterStartupScript(Page, Page.GetType(), "errorScript",
       errorScript, True)
  </code></pre>
  
  <p><strong>None</strong> have worked... Is there something I'm missing here??</p>