displaying sybase timestamp

  • Thread starter Thread starter Shawn
  • Start date Start date
S

Shawn

Hi.
I'm trying to display a sybase timestamp, but I only get an error.
objDataReader.getvalue(0) returns an error saying:
"System.InvalidCastException: Cast from type 'Byte()' to type 'String' is
not valid."

I've also tried to bind it directly to a DataGrid. It doesn't give me an
error, but it doesn't show the value in the DataGrid either.

Shawn
 
Nevermind.
I tried to do a response.write on the value along with a string, that was
what caused the InvalidCastException.
response.Write(objDataReader.getvalue(0) & "<br>")

Shawn


Hi.
I'm trying to display a sybase timestamp, but I only get an error.
objDataReader.getvalue(0) returns an error saying:
"System.InvalidCastException: Cast from type 'Byte()' to type 'String' is
not valid."

I've also tried to bind it directly to a DataGrid. It doesn't give me an
error, but it doesn't show the value in the DataGrid either.

Shawn
 
Back
Top