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="Phil H, post: 1984496"] Just had another thought The return statement of your GetInt() function should be: return reader[ColumnNum] NOT Reader[ColumnName] as you have it above! The casting error you are getting which is throwing the exception may be the attempt to cast the string 'ColumnName' to an integer for indexing (which should be *ColumnNum*). That at least would explain why the Catch() doesn't show anything wrong with the actual data in reader. Am I right? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
SqlDataReader showing Empty columns until after error.
Top