private Control GetCtrl(Control X) { cu = new BasicControlUtils(X); Control userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucSimplePager1.ascx"); return(userControl); }
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); }
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; }
private Control GetCtrl(Control X) { cu = new BasicControlUtils(X); Control userControl = cu.CreateControlFromResource("Carrotware.Web.UI.Controls.ucSimplePager1.ascx"); return userControl; }
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; }