protected virtual void WriteCategoryContent(HtmlTextWriter writer, ListQuickDetailCategory category) { string link = FormatLink("category", category); writer.RenderBeginTag(HtmlTextWriterTag.H3); writer.AddAttribute(HtmlTextWriterAttribute.Href, link); writer.RenderBeginTag(HtmlTextWriterTag.A); writer.Write(category.name); writer.RenderEndTag(); writer.RenderEndTag(); }
protected virtual void WriteCategory(HtmlTextWriter writer, ListQuickDetailCategory category) { Catalog.CategoryId = category.categoryid; writer.AddAttribute(HtmlTextWriterAttribute.Class, "gdCategory"); writer.RenderBeginTag(HtmlTextWriterTag.Div); WriteCategoryContent(writer, category); foreach (ListQuickDetailCategoryUnit unit in category.Unit) { WriteUnit(writer, unit); } writer.RenderEndTag(); }