Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking if databound value is null

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
GB
How do you check if a databound value is empty/null? This code below doesn't seem to work :

if (DataBinder.Eval(e.Item.DataItem, "CallType") == null)


Thanks,

lfc77
 
try the fuction isdbnull()
Code:
if not isdbnull([value]) then
   'use value here
else
   'null value
end if

hth

Jason Meckley
Database Analyst
WITF
 
Thanks Jason. I used this in C# to solve this :

if (DataBinder.Eval(e.Item.DataItem, "StripDigits") == DBNull.Value)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top