470,596 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

How To check the reader object value is null or not when fetching data from database

1
suppose we have an CompanyId column which is an int type but when we has the null value means we dont have value for this and we want to loop through of each value of the reader object then it show DBnull exception how we can handle these null exception in web services using asp.net C# Please explain
Thanks
Mar 3 '15 #1
0 2669

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Giulio Mastrosanti | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.