Monday, April 13, 2009
How to find a page control in usercontrol?
Write down the following code snipps for find the control of page
in user control.
TextBox tb = new TextBox();
tb = (TextBox) this.Parent.FindControl("tb1");
tb.Text = "I m in user control 1";
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)