Hi I am trying to format a number on a aspx page in a reapeter item template.
<%# formatnumber(DataBinder.Eval(Container.DataItem, "TOTAL_SQ_FOOTAGE"),0) %>
The problem is there are times when the value is null, and then the page bombs.
Cast from type 'DBNull' to type 'Currency' is not valid.
How do I put an if statement for checking for dbnull.value?? I need an if statement in other place as well.