I try to set checked
attribute for <input type="checkbox"/>
:
checked="<%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsOperationPerformed")) ? "checked" : string.Empty%>"
But I get an error
Argument type ‘string’ is not assignable to parameter type ‘bool’
IsOperationPerformed
of type Boolean
.
How can I add cheched
attribute?