By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

ISNULL FUNCTION

P: n/a
How can I use ISNULL() function in asp.net

Thanks

Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
string s = "SELECT ISNULL(myField, ValueIfItsNull) From MyTable";

myCommand.CommandText = s;
....then execute your query here.

"Ezzeddin" <ez******@hotmail.com> wrote in message
news:08****************************@phx.gbl...
How can I use ISNULL() function in asp.net

Thanks

Jul 19 '05 #2

P: n/a
IsNull has been replaced with IsDBNull()

If IsDBNull(x) then exit sub
"Ezzeddin" <ez******@hotmail.com> wrote in message
news:08****************************@phx.gbl...
How can I use ISNULL() function in asp.net

Thanks

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.