title: Giving Borders to the dynamically added HTML table
body: <p>I have a HTML table added dynamically in my Code behind. </p>
  
  <p>I am able to give the entire table a border. </p>
  
  <p>How can I do this for each row? I want to add a border under each row. </p>
  
  <p>How can I add a hyperlink to cells at runtime?</p>
  
  <p>What I have tried is </p>
  
  <pre><code>tdr.Width = "100px";
  tdr.Attributes.Add("class", "float-left");
  
  row = new HtmlTableRow(); 
  cell = new HtmlTableCell();
  cell.InnerText = doc;
  row.Cells.Add(cell);
  tdr.Rows.Add(row);
  
  row = new HtmlTableRow(); 
  cell = new HtmlTableCell();
  cell.InnerText = "No Timming";
  row.Cells.Add(cell);
  tdr.Rows.Add(row);
  
  row = new HtmlTableRow(); 
  cell = new HtmlTableCell();
  cell.InnerText = weekday[i];
  row.Cells.Add(cell);
  tdr.Rows.Add(row);
  </code></pre>
  
  <p>And my CSS:</p>
  
  <pre><code>&lt;style type="text/css"&gt;
      .float-left
      {
          float:left;
          border-style:solid;
          border-width:2px;
          border-color:Black;
      }
  &lt;/style&gt;
  </code></pre>