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";


Thanks
Helpondesk Team

No comments: