protected override void WriteHtml(HtmlTextWriter writer) { var html = new MobileDetailButtonHtmlBuilder(this).Build(); html.WriteTo(writer); //prevent rendering empty script tag //base.WriteHtml(writer); }