Hi,
Having a problem with my FindControl. Want to change the Label value from another aspx page. (Using C#).Heres the code
Label HomeLabel = (Label)Page.FindControl("HomeLabel");
HomeLabel.Text = TextBox1.Text;
This is what is causing the error System.NullReferenceException.
Thanks in Advance
Emma
Having a problem with my FindControl. Want to change the Label value from another aspx page. (Using C#).Heres the code
Label HomeLabel = (Label)Page.FindControl("HomeLabel");
HomeLabel.Text = TextBox1.Text;
This is what is causing the error System.NullReferenceException.
Thanks in Advance
Emma