Why does IsClientScriptBlockRegistered always return false in debug mode?
<p>In the code behind, I have the following code:</p>

<pre><code>if (!Page.ClientScript.IsClientScriptBlockRegistered("Script1"))
   Page.RegisterClientScriptBlock("Script1", "&lt;script type=\"text/javascript\"&gt;alert('test');&lt;/script&gt;");
</code></pre>

<p>This code seems to work fine, but when I try to debug it <code>Page.ClientScript.IsClientScriptBlockRegistered("Script1")</code> always returns <code>false</code>.  I even opened the quick watch window and was able to find the script under <code>_clientScriptBlock</code>.</p>

<p>Any idea why this is?</p>
