Note: Answers in C# please - thx!
I have FormView1 with txtbxEditTemplatePopCount TextBox on it. txtbxEditTemplatePopCount is the name of the textbox on the Edit template -- the same corresponding textbox on the Item & Insert templates has another name. When the form comes up in Edit mode the current value is in the textbox. I change the value and click the Update button -- as soon as I do that then on-screen the value in the textbox goes back to what it was originally and the original value is sent as parameter to the method call. Code is below. The code is finding the control on the formview but won't take the new value and keeps using the old one. Very confused! Help!
protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e)
TextBox txtbxCensusPopCount = (TextBox)FormView1.FindControl("txtbxEditTemplatePopCount");
intCensusPopCount = Convert.ToInt32(txtbxCensusPopCount.Text);
strError = BLL_Census(intCensusPopCount );