i have Parser error. my html code:
<input id="chk" runat="server" type="checkbox" name="table_records" <%#Eval("CheckStatus").ToString().Trim() == "True" ? "checked" : string.Empty %> />
i tried this way:
<%# (bool)Eval("CheckStatus") ? "checked=\"checked\"" : "" %>
but not worked.
Aucun commentaire:
Enregistrer un commentaire