Hi, I have a model popupexteder.
in that i have 2 <td>'s.
in 1st td i have checkbox. checkedlistbox in 2nd <td>
whn i check the checkbox i want to show the data in checked listbox.
in checkbox changed event the data is loading . but in front end it not showing the data.
this is my code.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
//BEvents obj = new BEvents();
DataTable dt = BEvents.AddEventSelectMembers(Login.ClubKey, true, false, false, false);
chklst1.DataSource = dt;
chklst1.DataTextField = "Member_FirstName";
chklst1.DataValueField = "Member_Key";
}
<asp:Panel ID="LoginPanel" runat="server" CssClass="modalPopup" Style="display: none"
Width="778px" Font-Names="@MS PGothic">
<table style="width: 770px">
<tr>
<td style="width: 470px">
<asp:Accordion ID="Accordion1" runat="server" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent" >
<Panes>
<asp:AccordionPane ID="AccordionPane1" runat="server">
<Header>
Choose members to contact</Header>
<Content>
<table>
<tr>
<td colspan="2">
<p>
Use the options in this left panel to send to a sub-section of your members. Please
note settings made in this left panel will override any amendments you make to the
list on the right.</p>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged"
AutoPostBack="True" />All Current members
</td>
<td>
<asp:CheckBox ID="CheckBox2" runat="server" />Club officials
</td>
</tr>
</table>
</Content>
</asp:AccordionPane>
thi is my second <td>
<td style="vertical-align: top; width: 300px">
<table>
<tr>
<td>
<asp:Literal ID="Literal25" runat="server">Selected Members</asp:Literal>
</td>
</tr>
<tr>
<td>
<hr />
</td>
</tr>
<tr>
<td style="border:1px">
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:CheckBoxList ID="chklst1" runat="server" Height="250px" RepeatColumns="2" RepeatDirection="Vertical">
</asp:CheckBoxList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr><td >
<asp:Button ID="CancelBtn" runat="server" Text="Cancel" Width="52px" buttonAction="submitButton" />
<asp:Button ID="LoginBtn" runat="server" Text="Select members" buttonAction="cancelButton" Width="130px" />
</td></tr>
</table>