displaying sybase timestamp

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
 
S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top