public override void RenderControl(HtmlTextWriter writer) { using (HtmlBuilder builder = new HtmlBuilder()) { using (Element el = builder.CreateElement("button")) { AddAttributes(el); using (Element bRight = builder.CreateElement("span")) { bRight.AddAttribute("class", "bRight"); using (Element bLeft = builder.CreateElement("span")) { bLeft.AddAttribute("class", "bLeft"); using (Element bCenter = builder.CreateElement("span")) { bCenter.AddAttribute("class", "bCenter"); using (Element content = builder.CreateElement("span")) { content.AddAttribute("id", ClientID + "_LBL"); content.Write(Text); } } } } } writer.Write(builder.ToString()); } }