1
ドロップダウンリストとパネルのチェックボックスリストがあります。ドロップダウンリスト選択では、チェックボックスのリストがロードされます。チェックボックスのリスト項目をチェックしている間、チェックボックスのOnselectedIndexChangedイベントは発生していません。この代わりに、ドロップダウンリストのOnselectedIndexChangedイベントが呼び出されます。チェックボックスリストのイベントが発生していません
Page_Initメソッドで以下のコード
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<asp:Panel ID="pnldivchkbolst" runat="server" Visible="false">
<asp:Label ID="lblsupervisor" runat="server" Text="Allocate Supervisor :"></asp:Label>
<asp:DropDownList ID="ddlSupervisor" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlSupervisor_SelectedIndexChanged">
</asp:DropDownList>
<p>
<asp:Label ID="Label1" runat="server" Text="Selected Students :"></asp:Label>
<asp:Label ID="selectitems" runat="server" Text=""></asp:Label>
</p>
<asp:CheckBoxList runat="server" ID="chkstudentlist" AutoPostBack="true"
OnSelectedIndexChanged="chkstudentlist_SelectedIndexChanged" >
</asp:CheckBoxList>
<p>
<asp:Button runat="server" ID="btnSubmit" CssClass="button1" Text="Submit" OnClick="Submit_SSL_Click" />
<asp:Button runat="server" ID="btnEditSupervisor" CssClass="button1" Visible="false"
Text="Edit Supervisor" OnClick="btnEditSupervisor_Click" />
<asp:Button runat="server" ID="btnUnSelect" CssClass="button1" Text="UnSelect"
OnClick="btnUnSelect_Click" />
<asp:Label ID="lblUnselect" runat="server" Text=""></asp:Label>
</p>
<tr>
<asp:Label ID="Label3" runat="server" Text="Note: Student Listed in Yellow color have not completed the previous Activity and Students with pink Color are already assinged to Supervisor"></asp:Label>
</tr>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
を見つけてください、私はそのタブ内の動的に作成タブコンテナおよび追加pnldivchkbolstパネルを持っています。
ありがとうございます。
私が 'ddlSupervisor_SelectedIndexChanged'と' chkstudentlist_SelectedIndexChanged'内にあるかわからないが、あなたのコードが動作するだけで罰金だあなたが同じ方法をトリガーboth-いくつかのコード –
を追加しているようです。 – VDWWD
Page_Initメソッドでは、動的に作成されたタブコンテナがあり、そのタブ内にpnldivchkbolstパネルを追加しています。 – DivyaSiva