Note that there are some explanatory texts on larger screens.

plurals
  1. POc# add Textbox dynamic
    primarykey
    data
    text
    <p>I have requirement like this.</p> <p>I use ASP.NET to develop a web page.</p> <p>Now I want to click button ,then add new textbox in page. here is the part of code:</p> <pre><code> &lt;table with="900px"&gt; &lt;tr&gt; &lt;td&gt; Email : &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Button ID="Button1" runat="server" Text="Add" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtEmail0" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Button ID="Button2" runat="server" Text="[delete]" /&gt; &lt;%-- the name should by txtEmail + &lt;0,1,2,3,4..&gt;--%&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtEmail1" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Button ID="Button3" runat="server" Text="[delete]" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>the page like:</p> <p><img src="https://i.stack.imgur.com/2iDoV.jpg" alt="enter image description here"></p> <p>So how to finish this function <strong>,also include use jquery or javascript to add new textbox</strong>.</p> <p>start ,i want to drag five textbox ,then hide it, if click add ,then show one textbox, if click <strong>delete</strong> ,then <strong>hide</strong> textbox. Is that a good solution?</p> <p><strong>And the server side and client side both need to validate for textemail </strong></p> <p>then this is need to associated the dynamic textbox. can somebody help me with this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload