using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace QMOnline.FixtureET
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HtmlTableRow r;
HtmlTableCell c;
r = new HtmlTableRow();
TextBox a1 = new TextBox();
c = new HtmlTableCell();
c.Controls.Add(a1);
r.Cells.Add(c);
TextBox a2 = new TextBox();
c = new HtmlTableCell();
c.Controls.Add(a2);
r.Cells.Add(c);
Table2.Rows.Add(r);
}
public void AddTable()
{
HtmlTableRow r;
HtmlTableCell c;
r = new HtmlTableRow();
TextBox a1 = new TextBox();
c = new HtmlTableCell();
c.Controls.Add(a1);
r.Cells.Add(c);
TextBox a2 = new TextBox();
c = new HtmlTableCell();
c.Controls.Add(a2);
r.Cells.Add(c);
Table2.Rows.Add(r);
}
protected void btnGenerateGrid_Click(object sender, EventArgs e)
{
AddTable();
}
}
}