I am trying to get the value of a textbox which is part of a FormView, ItemTemplate.
My button code is.
protected void btnNext_Click(object sender, EventArgs e)
TextBox ID = (TextBox)FormView1.FindControl("ID");
I am getting an error
"Object reference not set to an instance of an object."
i am not sure how to fix this.