public override string Render() { if (Filter != null && Filter.Filter(RowData)) { return(string.Empty); } var a = new TagBuilder("a"); a.AddCssClass(CssClass); a.Attributes["trButton"] = Id; a.SetInnerText(Name); if (!OnClick.IsNullOrEmpty()) { a.Attributes.Add("onclick", FormatAttribute(OnClick)); } if (!Href.IsNullOrEmpty()) { a.Attributes.Add("href", FormatAttribute(Href)); } else { a.Attributes.Add("href", "javascript:void(0);"); } a.Attributes.Add("target", "_{0}".FormatTo(Target.ToString().ToLower())); return(a.ToString()); }