M
Max Gay via .NET 247
I am having a problem with a page that I am trying to develop. Iam new at asp.net.
The page I have created makes a datagrid that has two links aedit and a cancel link. When you click either of the links itthrows the following error "Object reference noet set to aninstance of an object. The following lines appear along withthat error message
Line 69: Dim CurrentTextBox AsSystem.Web.UI.WebControls.Textbox
Line 70: CurrentTextBox=E.Item.FindControl("edit_" &Cols(I))
Line 71: Dim ColValue As String = CurrentTextBox.Text
Line 72: MyCommand.Parameters("@" &Cols(I)).Value=ColValue
Line 73: Next
I forgot to mention that this is part of a For Next Loop
What could be causing this--I can post more code if needed
Thank you in advance
Max
The page I have created makes a datagrid that has two links aedit and a cancel link. When you click either of the links itthrows the following error "Object reference noet set to aninstance of an object. The following lines appear along withthat error message
Line 69: Dim CurrentTextBox AsSystem.Web.UI.WebControls.Textbox
Line 70: CurrentTextBox=E.Item.FindControl("edit_" &Cols(I))
Line 71: Dim ColValue As String = CurrentTextBox.Text
Line 72: MyCommand.Parameters("@" &Cols(I)).Value=ColValue
Line 73: Next
I forgot to mention that this is part of a For Next Loop
What could be causing this--I can post more code if needed
Thank you in advance
Max