09 June 2007

Find a control on a page

TextBox b = Page.FindControl("TextBox1") as TextBox;
if(b != null)
{
Response.Write("Found TextBox1 on Button1_Click
");
}

No comments:

Post a Comment