Dynamically adding asp:button to web form using jQuery append() method
<p>I am trying to add an ASP.Net Button programatically using jQuery append method to HTML.
Here is the code:</p>

<pre><code>$("#form1 #container").append('&lt;div id="cool"&gt;&lt;asp:Button ID="Button1" runat="server" Text="Button" &gt;/div&gt; ');
</code></pre>

<p>But somehow it shows this error </p>

<blockquote>
  <p>Control 'Button1' of type 'Button' must be placed inside a form tag with runat=server.</p>
</blockquote>

<p>Please help me. Thanks.</p>
