S
sada
Hi,
I have a datatable. I want to just retrive one row from
it and display it on some web page. I am sure, this is
very simple. But I am having difficulty in doing that.
The problem is how to retrive the row from the table. I
tried the table.rows(1) to lets say retrive the second
row. The table has that row present. When I write line in
my program in following way:
Dim datarow1 As DataRow
datarow1 = testtable.rows(1)
I get an error saying,
"Nullreferenceexception: Object reference not set to an
instance of an object."
Also, how to bind the datarow object to some web control
so that I can display that row on a web page.
Thanks in advance.
Sada
I have a datatable. I want to just retrive one row from
it and display it on some web page. I am sure, this is
very simple. But I am having difficulty in doing that.
The problem is how to retrive the row from the table. I
tried the table.rows(1) to lets say retrive the second
row. The table has that row present. When I write line in
my program in following way:
Dim datarow1 As DataRow
datarow1 = testtable.rows(1)
I get an error saying,
"Nullreferenceexception: Object reference not set to an
instance of an object."
Also, how to bind the datarow object to some web control
so that I can display that row on a web page.
Thanks in advance.
Sada