Пример #1
0
 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();
 }
Пример #2
0
        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();
        }