|
kentico_ivanat
-
10/12/2011 4:04:19 AM
RE:Ifcompare with boolean data type
Hi,
if the field is defined as a checkbox, the default value is empty and if checked the value is true, you can use following code:
<%# IfCompare(CMS.GlobalHelper.ValidationHelper.GetBoolean(Eval("boleanField"), false), true, "false result", "true result")%>
Best regards, Ivana Tomanickova
|