Dynamic table in Asp.Net
<p>Hi guys here I've created d dynamic table and how can i set d properties of the table like height, width and etc? Pls help me.. Thanks...</p>

<p>code</p>

<pre><code>private void GenerateTable(int rowsCount)
 {
   Table table = new Table(); 
   for (int i = 0; i &lt; rowsCount; i++)
   {
     TableRow row = new TableRow();
     TableCell cell = new TableCell();
     TextBox tb1 = new TextBox();
     DropDownList drp1 = new DropDownList();
     tb1.ID= "dname"+i;drp1.ID = "relation" + i;      
     cell.Controls.Add(tb1);
     cell.Controls.Add(drp1);
     row.Cells.Add(cell);table.Rows.Add(row);
   }
   rowsCount++;
   ViewState["RowsCount"] = rowsCount;
 }
</code></pre>
