<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicTable.aspx.cs" Inherits="DynamicTable" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 style="color:Green">Table: Programmatically add Cell and Column</h2>
<asp:Label
ID="Label1"
runat="server"
Font-Bold="true"
ForeColor="HotPink"
Text="Rows"
>
</asp:Label>
<asp:TextBox
ID="TextBox1"
runat="server"
BackColor="HotPink"
ForeColor="FloralWhite"
>
</asp:TextBox>
<br />
<asp:Label
ID="Label2"
runat="server"
Font-Bold="true"
ForeColor="HotPink"
Text="Columns"
>
</asp:Label>
<asp:TextBox
ID="TextBox2"
runat="server"
BackColor="HotPink"
ForeColor="FloralWhite"
>
</asp:TextBox>
<br /><br />
<asp:Button
ID="Button1"
runat="server"
Font-Bold="true"
ForeColor="HotPink"
OnClick="Button1_Click"
Text="Create Table"
/>
<br /><br />
<asp:Table
ID="Table1"
runat="server"
BorderWidth="1"
BorderColor="DodgerBlue"
>
</asp:Table>
</div>
</form>
</body>
</html>