Operator is not valid for type 'DBNull' and type 'Decimal'.Thanks for any helpOH,<<itemtemplate><%# String.Format("<font color="darkred">{0:c}</font>", (DataBinder.Eval(Container.DataItem, "MyDecimal"))*(DataBinder.Eval(Container.DataItem, "price"))) %>
Line 81: </itemtemplate>
Line 82: </asp:templatecolumn>
The sql function ISNULL(mydecimal,'0') as my decimal
thanks anyway!!|||use
isnull(price,0)in the query
hth
No comments:
Post a Comment