Problems simulating click of ASP.NET button
<p>I have some code like this</p>

<pre><code>&lt;asp:Button ID="cancelDummyButt" runat="server" CausesValidation="False" 
    Text="cancel" onclick="cancelDummyButt_Click" Enabled="True" /&gt;
</code></pre>

<p>(Javascript:)</p>

<pre><code>buttid = '&lt;%=cancelDummyButt.ClientID.ToString%&gt;';
eltoclick = document.getElementById(buttid);
eltoclick.click();
</code></pre>

<p>The server-side code is not called.  What is wrong?  It goes OK until the "click". What is the best way to debug?</p>

<p><em>(This is to get the right postback from an iframe within an updatepanel)</em></p>
