@minitech
Yes, when I changed Table.rows to dt.rows and Table.columns to dt.columns, the problem went away.
But a new problem shows up now.
I've tried passing the Dataset as a referenced argument to this Sub, but that was no help.Code:Public Sub showdataset() For Each dt As DataTable In dsEvents.Tables Response.Write("<table border='1'>" & vbCrLf) For Each row As DataRow In dt.Rows Response.Write("<tr>" & vbCrLf) For Each dc As DataColumn In dt.Columns Response.Write("<td>" & row(dc).ToString & "</td>" & vbCrLf) Next Response.Write("</tr>" & vbCrLf) Next Response.Write("</table>" & vbCrLf) Next End Sub
To be more specific, the exact error is:
System.NullReferenceException: Object reference not set to an instance of an object.




Reply With Quote