True/False to Yes/No


Ad

Advertisements

E

Elton Wang

VB.NET:
<%# IIF(DataBinder.Eval(Container, "DataItem.Bit_Field_Name"), "Yes", "No")
%>

C#:
<%# DataBinder.Eval(Container, "DataItem.Bit_Field_Name") ? "Yes" : "No") %>

HTH
 

Top