spidervenom
Programmer
Hi
Here is a segment of my Code:
.
.
Dim myID As String
myID = Request.QueryString("ID"
Dim intMyID as Integer = Int32.Parse(myID)
Dim getDataSet As Data.DataSet = GetTable()
'Find Row in the DataSet
Dim getDataRow As Data.DataRow = getDataSet.Tables("testTable"
.Rows.Find(intMyID)
Dim sName, sSubject, sDetails AS String
sName = getDataRow.Item("Name"
sSubject= getDataRow.Item("Subject"
sDetails = getDataRow.Item("Details"
.
.
.
When I compile the code, it gave me an error:
"System.NullReferenceException: Object reference not set to an instance of an object"
How do I solve this problem? Also, is this the right way to retrieve row elements from a table?
Thanks in advance for the help!
Here is a segment of my Code:
.
.
Dim myID As String
myID = Request.QueryString("ID"
Dim intMyID as Integer = Int32.Parse(myID)
Dim getDataSet As Data.DataSet = GetTable()
'Find Row in the DataSet
Dim getDataRow As Data.DataRow = getDataSet.Tables("testTable"
Dim sName, sSubject, sDetails AS String
sName = getDataRow.Item("Name"
sSubject= getDataRow.Item("Subject"
sDetails = getDataRow.Item("Details"
.
.
.
When I compile the code, it gave me an error:
"System.NullReferenceException: Object reference not set to an instance of an object"
How do I solve this problem? Also, is this the right way to retrieve row elements from a table?
Thanks in advance for the help!