Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
SqlDataReader showing Empty columns until after error.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="sloan, post: 1984455"] I would try a different syntax. reader.Read(); object o = reader.GetValue(0); // 0 is the ordinal column value int tid = reader.GetInt32(0); Why use object? Just in case the type is not what youre expecting, you can figure out the type that way. Don't use it for production code (the .GetValue that is) .... just til you get the kinks out. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
SqlDataReader showing Empty columns until after error.
Top