<asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="mname" DataValueField="monthid" RepeatDirection="Horizontal"> </asp:CheckBoxList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:myconnection %>" SelectCommand="select monthid,mname from months where monthid not in(SELECT mnameid FROM InstallmentItem INNER JOIN Installment ON InstallmentItem.InstallmentID = Installment.InstallmentID AND InstallmentItem.SessionID = Installment.SessionID Where (InstallmentItem.SessionID =@sss) )"> <SelectParameters> <asp:ControlParameter ControlID="HiddenField1" Name="sss" PropertyName="Value" /> </SelectParameters> </asp:SqlDataSource>
AutoPostBack="true" <asp:checkboxlist id="CheckBoxList1" runat="server" datasourceid="SqlDataSource1" DataTextField="mname" AutoPostBack="true" DataValueField="monthid" RepeatDirection="Horizontal"> </asp:checkboxlist>
CheckBoxList1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)