C#, FindControl
I’m sorry, but I can’t understand why this doesn’t work. After compile, I receive a “Null reference exception”. Please help. public partial class labs_test : System.Web.UI.Page { protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text != "") { Label Label1 = (Label)Master.FindControl("Label1"); Label1.Text = "<b>The text you entered was: " + TextBox1.Text + ".</b>"; … Read more