H
Hennie
I have a textbox in the Footer of a Gridview.
When I run an insert command I get the following error:
"
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 87:
Line 88:
Line 89: Dim strOperatorID As String =
CType(GVProgram.FooterRow.FindControl("ddlOperatorID"),
DropDownList).SelectedValue
"
What is wrong with the code?
Thanks
Hennie
When I run an insert command I get the following error:
"
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 87:
Line 88:
Line 89: Dim strOperatorID As String =
CType(GVProgram.FooterRow.FindControl("ddlOperatorID"),
DropDownList).SelectedValue
"
What is wrong with the code?
Thanks
Hennie