Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
hi all
below is the code in aspx page which has a tablewith id=rav
so what i want is i have a texbox and button control if i enter some value in textbox( ie users choice) and click on button the value how much ihave entered that much tables should be displayed

so any body give me any examples or give me any idea





<form id="form1" runat="server">
<table class="auto-style1" id="rav" runat="server">
<tr>
<td class="auto-style2">  Children first name </td>
<td class="auto-style31">
<asp:TextBox ID="TextBox7" runat="server" CssClass="auto-style37" Width="185px"></asp:TextBox>
 </td>
</tr>
<tr>
<td class="auto-style2">  <span class="auto-style18">Children last name  </span></td>
<td class="auto-style33">    <asp:TextBox ID="TextBox8" runat="server" CssClass="auto-style37" Width="186px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style2">  <span class="auto-style18"> Going to school?: </span></td>
<td class="auto-style35">
 <span class="auto-style18"> </span>
<asp:RadioButton ID="RadioButton1" runat="server" CssClass="auto-style18" Text="Yes" />
<asp:RadioButton ID="RadioButton2" runat="server" CssClass="auto-style18" Text="No" />
</td>
</tr>
<tr>
<td class="auto-style2">  <span class="auto-style18">school name : </span></td>
<td class="auto-style31">
<asp:TextBox ID="TextBox9" runat="server" CssClass="auto-style38" Width="147px"></asp:TextBox>
 </td>
</tr>
<tr>
<td class="auto-style2">  <span class="auto-style18">Grade :</span></td>
<td class="auto-style33">      <asp:DropDownList ID="DropDownList1" cssClass="select" AutoPostBack="True" runat="server">
<asp:ListItem>1st Grade</asp:ListItem>
<asp:ListItem>2nd Grade</asp:ListItem>
<asp:ListItem>3rd Grade</asp:ListItem>
<asp:ListItem>4th Grade</asp:ListItem>
<asp:ListItem>5th Grade</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<td><asp:Button ID="Button1" runat="server" Text="save" />
</table>
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</form>
Posted
Comments
Krunal Rohit 12-Oct-15 5:11am    
You have only one table in your code. And you want user to input let's say 5. So there must be 5 same tables on a page, right ?

-KR
raviram123 12-Oct-15 5:52am    
yes sir
Krunal Rohit 12-Oct-15 7:06am    
jQuery Clone() will help you.

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900