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