D
DubSport
I have created a datatable in a function, and it is populated with
data. I want to call a new function from an ASP button, and write out
some of the values in the datatable, using:
string RowValue;
RowValue = dt.Rows[0][1].ToString();
Response.Write(RowValue);
Now when I run that code from within the same function that the
datatable was populated from, it works.
When I try to run that code from a seperate function, it says that
"There is no row at position 0.".
How do I make my datatable data available to this other function?
Thanks,
....Jamie
data. I want to call a new function from an ASP button, and write out
some of the values in the datatable, using:
string RowValue;
RowValue = dt.Rows[0][1].ToString();
Response.Write(RowValue);
Now when I run that code from within the same function that the
datatable was populated from, it works.
When I try to run that code from a seperate function, it says that
"There is no row at position 0.".
How do I make my datatable data available to this other function?
Thanks,
....Jamie