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="lithoman, post: 1984519"] reader[ColumnNum] and reader[ColumnName] are both valid methods to get at the value of the reader column. As for the previous question, this was the work-around I found for dealing with DBNulls which don't convert directly to .Net nulls, throwing a cast error instead. It's been working very well for me so I haven't bothered to look into a different method. Does return (int) reader.GetInt32(columnNum); handle the DBNull issue? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
SqlDataReader showing Empty columns until after error.
Top