<
td width="90%">
<table width="95%" border="1">
<tr>
<td>
<span style="font-weight: bold; font-size: 10pt"></span>
<%
--<asp:Label ID="lblAccountNumber" runat="server" Text='<%# Bind("AccountNumber") %>'
Font-Bold="true" Font-Size="10"></asp:Label>--
%>
<br />
<asp:ListBox ID="lbAllAccountNumbers" runat="server" Width="300" Height="200" SelectionMode="Multiple">
</asp:ListBox>
<ajaxToolkit:ListSearchExtender ID="SearchAllAccount" TargetControlID="lbAllAccountNumbers"
runat="server">
</ajaxToolkit:ListSearchExtender>
<asp:ImageButton ID="btnSelect" ImageUrl="~/images/right.jpg" ImageAlign="Middle" runat="server" OnClick="btnSelect_Click" />
<asp:ImageButton ID="btnUnselect" ImageUrl="~/images/left.jpg" ImageAlign="Middle" runat="server" OnClick="btnUnselect_Click" />
<ajaxToolkit:ListSearchExtender ID="SearchAvailableAccounts" TargetControlID="lbAvailableAccountNumbers"
runat="server">
</ajaxToolkit:ListSearchExtender>
<asp:ListBox ID="lbAvailableAccountNumbers" runat="server" Width="300" Height="200"
SelectionMode="Multiple"></asp:ListBox>
</td>
</tr>
</table>
</td>
The above code is in EditFormSettings tab.
When edit button is clicked iam loading two listboxes with some data.
In between those two listboxes , i have two buttons which will select or unselect from the above list boxes. When an item or items is selected in the listbox and clicked on Button, i have to move those items selected in the listbox to the other listbox.
I am writing this code in the button click event.
But in the button click , iam not able to gt the listbox.
Is there a way to get a reference to the listbox in the grid when the grid is in edit mode.
Thanks in advance.