vb.net - How to retrieve selected value from the dropdown list in asp.net and store it in session variable? -


The dropdown list is showing data from the database, but how the selected value can be retrieved and stored in a session variable To do?

You use the eval or bind methods Dividend the selected value in the dropdown list

  & asp: dropdown list id = "dropdown list 1" runat = "server" selected value = '& lt;% # bind (" ID ")%> / & Gt;  

Comments