我有一个ASP ListBox,它的SelectionMode设置为"Multiple“。有没有办法检索所有选定的元素,而不只是最后一个?
<asp:ListBox ID="lstCart" runat="server" Height="135px" Width="267px" SelectionMode="Multiple"></asp:ListBox>
使用lstCart.SelectedIndex
只返回最后一个元素(不出所料)。有什么东西可以让我全部选中吗?
https://stackoverflow.com/questions/1586078
复制相似问题