Aug 27, 2003 #1 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
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
Aug 27, 2003 #2 jmeckley Programmer Jul 15, 2002 5,269 US try the fuction isdbnull() Code: if not isdbnull([value]) then 'use value here else 'null value end if hth Jason Meckley Database Analyst WITF Upvote 0 Downvote
try the fuction isdbnull() Code: if not isdbnull([value]) then 'use value here else 'null value end if hth Jason Meckley Database Analyst WITF
Aug 28, 2003 Thread starter #3 lfc77 Programmer Aug 12, 2003 218 GB Thanks Jason. I used this in C# to solve this : if (DataBinder.Eval(e.Item.DataItem, "StripDigits" == DBNull.Value) Upvote 0 Downvote
Thanks Jason. I used this in C# to solve this : if (DataBinder.Eval(e.Item.DataItem, "StripDigits" == DBNull.Value)