コード例 #1
0
        private Control GetCtrl(Control X)
        {
            cu = new BasicControlUtils(X);
            Control userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucSimplePager1.ascx");

            return(userControl);
        }
コード例 #2
0
        private Repeater GetCtrl(Control ctrl)
        {
            Repeater r = new Repeater();

            try {
                BasicControlUtils cu          = new BasicControlUtils(ctrl);
                Control           userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucFancyPager.ascx");
                r = (Repeater)cu.FindControl("rpPager", userControl);
            } catch { }

            return(r);
        }
コード例 #3
0
        protected override void RenderChildren(HtmlTextWriter writer)
        {
            int indent1 = writer.Indent;

            foreach (Control c in this.Controls)
            {
                writer.Indent = indent1;
                if (c is ListItemRepeater)
                {
                    writer.Write("\t");
                    writer.Write(BasicControlUtils.GetCtrlText(c).Replace("\r\n", "\r\n\t\t"));
                    writer.WriteLine();
                    writer.Write("\t\t");
                }
                else
                {
                    c.RenderControl(writer);
                }
            }

            writer.Indent = indent1;
        }
コード例 #4
0
        private Control GetCtrl(Control X)
        {
            cu = new BasicControlUtils(X);
            Control userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucSimplePager1.ascx");

            return userControl;
        }
コード例 #5
0
        private Repeater GetCtrl(Control ctrl)
        {
            Repeater r = new Repeater();

            try {
                BasicControlUtils cu = new BasicControlUtils(ctrl);
                Control userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucFancyPager.ascx");
                r = (Repeater)cu.FindControl("rpPager", userControl);
            } catch { }

            return r;
        }