C
Chris
I have a class method that returns a DataSet.
I use bind this to my Repeater control.
Inside the Repeater i have
<ItemTemplate>
<li><%# DataBinder.Eval(Container.DataItem, "name") %> <%#
DataBinder.Eval(Container.DataItem, "enabled") %></li>
</ItemTemplate>
I want to include a checkbox that will be 'checked' when enabled='t'. I
don't want to use the asp:Checkbox control as i will be doing custom
form submission on change.
I notice i cannot do:
<input type="checkbox" value="t" <%# if (DataBinder.Eva(Container.DataItem,
"enabled") == 't') { Response.Write("checked"); } %> />
So i'm after suggestions as to how i can achieve this?
Thanks
Chris
I use bind this to my Repeater control.
Inside the Repeater i have
<ItemTemplate>
<li><%# DataBinder.Eval(Container.DataItem, "name") %> <%#
DataBinder.Eval(Container.DataItem, "enabled") %></li>
</ItemTemplate>
I want to include a checkbox that will be 'checked' when enabled='t'. I
don't want to use the asp:Checkbox control as i will be doing custom
form submission on change.
I notice i cannot do:
<input type="checkbox" value="t" <%# if (DataBinder.Eva(Container.DataItem,
"enabled") == 't') { Response.Write("checked"); } %> />
So i'm after suggestions as to how i can achieve this?
Thanks
Chris