Server Controls
For those of you writing custom server controls in
ASP.NET - by default, the controls tend to render everything within span
blocks.
In our case, we wanted it to use divs instead, here's how:
protected override HtmlTextWriterTag TagKey
{
get
{
return
HtmlTextWriterTag.Div;
}
}
UPDATE: That is, of course, only if you use WebControl vs.
Control.