Add Attributes to root HTML Element of a Custom Control
<pre><code>public class CustCtl : WebControl
{
    protected override System.Web.UI.HtmlTextWriterTag TagKey
    {
        get
        {
            return HtmlTextWriterTag.Div;
        }
    }       
}
</code></pre>

<p>With this bare bones control, it would render the root element as a Div tag. But how can I add attributes to that root HTML element that this control will render ... such as a style or id. </p>

<p>Thanks! =D</p>
