Posted on: 2/19/2014 1:07:25 PM | Views : 627

I am creating textbox's dynamically on button click, but the problem is I am not able to restrict the creation of these textboxes upto a certain number of count. I want to restrict the creation of these textbox's say upto 5 for this what changes I have to do in my code. This is my code-
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <table border="1" width="500px"> <tr> <td>Add Text Box: </td> <td> <asp:TextBox ID="txt" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Add More" onclick="Button1_Click" /><br /> <asp:PlaceHolder ID ...

Go to the complete details ...