public override void RenderControl( HtmlTextWriter writer )
{
if ( this.Visible )
{
writer.AddAttribute( HtmlTextWriterAttribute.Class, "form-group static-control " + CssClass );
writer.RenderBeginTag( HtmlTextWriterTag.Div );
writer.AddAttribute( HtmlTextWriterAttribute.Class, "control-label" );
writer.AddAttribute( HtmlTextWriterAttribute.For, this.ClientID );
writer.RenderBeginTag( HtmlTextWriterTag.Label );
writer.Write( Label );
writer.RenderEndTag(); // label
writer.AddAttribute( HtmlTextWriterAttribute.Class, "control-wrapper" );
writer.RenderBeginTag( HtmlTextWriterTag.Div );
writer.AddAttribute("class", "form-control-static");
writer.AddAttribute( HtmlTextWriterAttribute.Id, this.ClientID );
writer.RenderBeginTag( HtmlTextWriterTag.P );
base.RenderControl( writer );
writer.RenderEndTag();
writer.RenderEndTag(); // control-wrapper
writer.RenderEndTag(); // form-group
}
}