Exemple #1
0
        /// <summary>
        /// 绘制该服务器控件
        /// </summary>
        /// <param name="writer"></param>
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);

            // 绘制客户端脚本
            ClientRunTimeRender.Render(writer, this);
        }
Exemple #2
0
        /// <summary>
        /// 绘制分组列表控件
        /// </summary>
        /// <param name="writer"></param>
        protected override void Render(HtmlTextWriter writer)
        {
            writer.WriteLine("<table width='{0}' cellpadding='2' cellspacing='0'>", this.Width);

            foreach (Control c in this.Controls)
            {
                writer.WriteLine("<tr>");
                writer.WriteLine("<td>");

                c.RenderControl(writer);

                writer.WriteLine("</td>");
                writer.WriteLine("</tr>");
            }

            writer.WriteLine("</table>");

            // 绘制客户端脚本
            ClientRunTimeRender.Render(writer, this);
        }