Friday, June 3, 2011

How to check Null Value

How to check Null Value in ASP.NET

The solution to check the Null Value without using DBNull is a trick
Concatenate "" with null which makes it Blank then check blank value
i.e if(null+"" == ""){ //statement};

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.