Hello,
I have a database table with a char(1) filed to indicate whether or not
an event is shown. If the value is 'y' it is, and if it's 'n' it's not.
I am trying to use this value in a checkbox (in a DataList), so that
when the value is 'y', the checkbox is checked, and when it's 'n', the
checkbox isn't checked.
I have tried ...
<asp:CheckBox ID="chkPhotosShow" Text=""Checked='<%#DataBinder.Eval(Container.DataI tem, "ShowEvent")=="y"?true:false%>' Runat="Server" />
which shows the checkbox, but never checks it.
Any ideas what I'm doing wrong? TIA
--
Alan Silver
(anything added below this line is nothing to do with me)