Пример #1
0
        /// <summary>
        /// The rendering path for downlevel browsers.
        /// </summary>
        /// <param name="writer">The output stream that renders HTML content to the client.</param>
        protected override void RenderDownLevelPath(HtmlTextWriter writer)
        {
            if (Width == Unit.Empty)
            {
                Width = Unit.Percentage(100);
            }

            AddAttributesToRender(writer);

            string padding = Util.ExtractNumberString(Style["padding"]);

            if (padding != String.Empty)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Cellpadding, padding);
            }

            writer.RenderBeginTag(HtmlTextWriterTag.Table);
            writer.RenderBeginTag(HtmlTextWriterTag.Tr);

            // Only render the page that is visible
            PageView page = SelectedPage;

            if (page != null)
            {
                page.RenderControl(writer);
            }
            // base.RenderDownLevelPath(writer);

            writer.RenderEndTag();
            writer.RenderEndTag();
        }
Пример #2
0
        /// <summary>
        /// The rendering path for visual designers.
        /// </summary>
        /// <param name="writer">The output stream that renders HTML content to the client.</param>
        protected override void RenderDesignerPath(HtmlTextWriter writer)
        {
            if (Width == Unit.Empty)
            {
                Width = Unit.Percentage(100);
            }

            AddAttributesToRender(writer);
            writer.RenderBeginTag(HtmlTextWriterTag.Div);

            // Only render the page that is visible
            PageView page = SelectedPage;

            if (page != null)
            {
                page.RenderControl(writer);
            }

            writer.RenderEndTag();
        }