How to check if a field is null?

S

Shapper

Hello,

I need to check if a datareader field is empty.

My Datareader field is given by:
drProduct.Item("image02_url")

How can I do this?

Using drProduct.Item("image02_url") = "" is not working.

Thanks,
Miguel
 
M

Marina

IsDbNull(drProductItem("image02.url"))

or

drProduct.Item("image02_url") Is DbNull.Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top