Thursday, March 12, 2009

Access text box value from masterpage

// put this code in content page,the text box control is in masterpage
TextBox txt = (TextBox)Master.FindControl("txtSearch");
string str = txt.Text;

No comments: