prevent postback of HtmlButton in C#
<p>I am creating HtmlButton dynamically in .cs file.
Adding it to Panel using </p>

<pre><code>HtmlButton b1 = new HtmlButton();
b1.Attribute.Add("onclick","javascript:validateNclick(this.id);");
pnl.Controls.Add(b1); //pnl is Server-side &lt;Asp:Panel&gt;
</code></pre>

<p>Now how could i prevent postback of it? <strong>I had written javascript which is working in IE(No postback) but not in Mozilla Firefox (go to server-side code directly).</strong>
please help out.</p>
