title: How to add css style/class to a HtmlTextWriterTag.Td dynamically in .net?
body: <p>I have the following c# code in my control's RenderContents method. How can I add the style/class that is in external css file?</p>
  
  <pre><code>output.AddAttribute(HtmlTextWriterAttribute.Border, "0");
  output.AddAttribute(HtmlTextWriterAttribute.Width, "100%");
  output.RenderBeginTag(HtmlTextWriterTag.Table);
  output.RenderBeginTag(HtmlTextWriterTag.Tbody);
  output.RenderBeginTag(HtmlTextWriterTag.Tr);
  //Here -&gt; Need to add some style from external stylesheet.css file
  output.RenderBeginTag(HtmlTextWriterTag.Td);
  rblLoadSelection.RenderControl(output);
  output.RenderEndTag(); //Td
  output.RenderEndTag(); //Tr
  output.RenderEndTag(); //Tbody
  output.RenderEndTag(); //Table
  </code></pre>