Seven price
asked on
aspnet front end if else statement
This if else statement does not work.
Not sure what is the small modification this needs.
<%If IIf(Eval("PallCost") Is DBNull.Value, "False", "True") Then%>
<%#DataBinder.Eval(Contain er.DataIte m, "CaseCost", "{0:c}")%>
<% Else%>
<%#DataBinder.Eval(Contain er.DataIte m, "PallCost", "{0:c}")%>
<% End If%>
Not sure what is the small modification this needs.
<%If IIf(Eval("PallCost") Is DBNull.Value, "False", "True") Then%>
<%#DataBinder.Eval(Contain
<% Else%>
<%#DataBinder.Eval(Contain
<% End If%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh yeah this is inside a Datalist control
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Error 429 Operator '=' is not defined for types 'Object' and 'System.DBNull'.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
weird every row comes back with Currency and thats it.
ASKER
thanks guys
ASKER