Dynamic Table Going Out Of The Form Tag
I have added a dynamic table on page load as follows protected void Page_Load(object sender, EventArgs e) { Table tbl = new Table(); tbl.ID = 'table1'; this.Controls
Solution 1:
Add your table before </html>
tag
In ASP.Net better you add it with in form tag with below code
this.Form.Controls.Add(tbl);
instead of this.Controls.Add(tbl);
Solution 2:
Try this:
Table tbl =newTable();
tbl.ID = "table1";
Form.Controls.Add(tbl);
....
Post a Comment for "Dynamic Table Going Out Of The Form Tag"