protected override void RenderBody(HtmlTextWriter writer) { base.RenderBodyTableBeginTag(writer); if (base.DesignMode) { base.RenderDesignerRegionBeginTag(writer, Orientation.Vertical); } CatalogPartCollection catalogParts = this.CatalogParts; if ((catalogParts != null) && (catalogParts.Count > 0)) { bool firstCell = true; if (catalogParts.Count > 1) { writer.RenderBeginTag(HtmlTextWriterTag.Tr); writer.RenderBeginTag(HtmlTextWriterTag.Td); firstCell = false; this.RenderCatalogPartLinks(writer); writer.RenderEndTag(); writer.RenderEndTag(); } System.Web.UI.WebControls.WebParts.CatalogPartChrome catalogPartChrome = this.CatalogPartChrome; if (base.DesignMode) { foreach (CatalogPart part in catalogParts) { this.RenderCatalogPart(writer, part, catalogPartChrome, ref firstCell); } } else { CatalogPart selectedCatalogPart = this.SelectedCatalogPart; if (selectedCatalogPart != null) { this.RenderCatalogPart(writer, selectedCatalogPart, catalogPartChrome, ref firstCell); } } writer.RenderBeginTag(HtmlTextWriterTag.Tr); writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "0"); writer.AddStyleAttribute(HtmlTextWriterStyle.Height, "100%"); writer.RenderBeginTag(HtmlTextWriterTag.Td); writer.RenderEndTag(); writer.RenderEndTag(); } else { this.RenderEmptyZoneText(writer); } if (base.DesignMode) { WebZone.RenderDesignerRegionEndTag(writer); } WebZone.RenderBodyTableEndTag(writer); }
protected override void RenderBody(HtmlTextWriter writer) { base.RenderBodyTableBeginTag(writer); if (base.DesignMode) { base.RenderDesignerRegionBeginTag(writer, Orientation.Vertical); } if (this.HasControls()) { bool firstCell = true; this.RenderInstructionText(writer, ref firstCell); if (this._applyError) { this.RenderErrorText(writer, ref firstCell); } System.Web.UI.WebControls.WebParts.EditorPartChrome editorPartChrome = this.EditorPartChrome; foreach (EditorPart part in this.EditorParts) { if (part.Display && part.Visible) { writer.RenderBeginTag(HtmlTextWriterTag.Tr); if (!firstCell) { writer.AddStyleAttribute(HtmlTextWriterStyle.PaddingTop, "0"); } else { firstCell = false; } writer.RenderBeginTag(HtmlTextWriterTag.Td); editorPartChrome.RenderEditorPart(writer, part); writer.RenderEndTag(); writer.RenderEndTag(); } } writer.RenderBeginTag(HtmlTextWriterTag.Tr); writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "0"); writer.AddStyleAttribute(HtmlTextWriterStyle.Height, "100%"); writer.RenderBeginTag(HtmlTextWriterTag.Td); writer.RenderEndTag(); writer.RenderEndTag(); } else { this.RenderEmptyZoneText(writer); } if (base.DesignMode) { WebZone.RenderDesignerRegionEndTag(writer); } WebZone.RenderBodyTableEndTag(writer); }