RegisterClientScriptBlock code not executing
<p>I'm using the following code in an attempt to show a dialog with a list of errors on the client:</p>

<pre><code>    if (rollout.ImportErrors.Count &gt; 0)
    {
        ClientScript.RegisterClientScriptBlock(GetType(), "showErrors", "showErrors();", true);
    }
</code></pre>

<p>The error count is non-zero and the following script block is emitted, but the script isn't executing.  </p>

<pre><code>&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
$("#error-report").dialog("open")//]]&gt;
&lt;/script&gt;
</code></pre>

<p>If I call the function directly from a Firebug console window, the dialog shows properly, so I know the dialog and my code are working.  What am I doing wrong?  </p>

<p>BTW, this code is in a content page, using a content placeholder that 'injects' code into the  element of the rendered page.</p>
