Board index » Web Programming » asp.net 2 list box and get selected items
|
faberarcorum
|
asp.net 2 list box and get selected items
Web Programming304
i made a list box and a button inside a form that when the button pressed i have a function on the server that i s called : <asp:ListBox id="ddl_lstGames" runat=server Rows=4 SelectionMode=Multiple> </asp:ListBox><br/> <asp:Button Text="Add Games!" runat=server OnClick="AddGames" /> and server side : Protected Sub AddGames(Optional ByVal sender As Object = Nothing, Optional ByVal e As EventArgs = Nothing) End Sub what i want to do : inside the AddGames sub, to get list of selected item from thel ist box : there value and the value between the <option>xxxx</option> how do i do it? thnaks in advance peleg - |
