I have a strongly-typed dataset "TABLE" and I am want to retrieve its value..
Sometime the value is NULL. And I am getting an error "The value for column ' PHONE_NO ' in table 'User' is DBNull.
Here what I tried and it failed..
object value = userTable. PHONE_NO;
string str = (value is DBNull) ? "" : (string)value;
I also tried.
string str = userTable. PHONE_NO == null ? "" : userTable. PHONE_NO
How can I fix it.
View Complete Post