<asp:Repeater ID="Category" runat="server" DataSourceID="SQLDataSourceBenefitCategory" >
<ItemTemplate>
<li>
<asp:CheckBox ID = "filterid"+'<%# DataBinder.Eval(Container.DataItem,"ClientBenefitSectionheadingID","filterID{0}" ) %>' runat="server" value='<%# DataBinder.Eval(Container.DataItem,"ClientBenefitSectionheadingID","bencat{0}" ) %>' class = "dynamicFilterInput" AutoPostBack="True" Checked="True" />
</li>
</ItemTemplate>
你好,
我有上面的代码,我希望我的复选框具有来自 db 的 ID = "filter"+value。当我尝试根据上面的代码从 db 中获取值时,我得到了错误。谁能告诉我最好的方法来做到这一点?
谢谢