Create dynamic Table based on Row and Column value from TextBox using C# and VB.Net in ASP.Net

Last Reply 3 months ago By pandeyism

Posted 3 months ago

I want to create a dynamic table by adding height,width and row colums values by textbox. so, please help me.

     <form id="form1" runat="server">
         Height:<div><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
         Width:<div><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></div>
         Row:<div><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></div>   
         Column:<div><asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></div>
        <div style="margin-top:10px">
                    <table class="auto-style1" border="1"">
             <tr>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
             </tr>
             <tr>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
             </tr>
             <tr>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
             </tr>
         </table>
        </div>    
    </form>

 

This question does not have replies that have been liked.