N
nail
Hi.
So I have a default.aspx page and 3 WebUserControls
In the WebUserControl1, I have on TexBox, and in the default.aspx page I
have a Button control.
On the click event of the default.aspx page I need to change the
TextBox.Text value, but not user the FindControl Method because I think this
methos very slow.
So, I want this, but not with findcontrol:
void Button_Click(object sender, EventArgs e)
{
((TextBox)this.WebUserControl2_1.FindControl("TextBox1")).Text = "Principal
page button clicked";
}
Anybody has any idea how can I do that?
My boss said the findcontrol method use reflection and is too slow.
Understand now why I can't use findcontrol?
Thanks ind advance.
nail.
So I have a default.aspx page and 3 WebUserControls
In the WebUserControl1, I have on TexBox, and in the default.aspx page I
have a Button control.
On the click event of the default.aspx page I need to change the
TextBox.Text value, but not user the FindControl Method because I think this
methos very slow.
So, I want this, but not with findcontrol:
void Button_Click(object sender, EventArgs e)
{
((TextBox)this.WebUserControl2_1.FindControl("TextBox1")).Text = "Principal
page button clicked";
}
Anybody has any idea how can I do that?
My boss said the findcontrol method use reflection and is too slow.
Understand now why I can't use findcontrol?
Thanks ind advance.
nail.