How can I set a selected value of a dropdownlist? - TechRepublic
Question
February 28, 2010 at 12:52 PM
dillon.damien

How can I set a selected value of a dropdownlist?

by dillon.damien . Updated 16 years, 4 months ago

I am working in ASP.net (vb). I have a drop down list populated from table 1. I am trying to save the selected value to table 2. However, it does not seem to matter which value I select in the dropdownlist, it always defaults to the first item in the list.

How can I set a variable equal to the selected item in the dropdownlist? Do I do this on the ASP side or vb side. I am trying to apply combobox logic to this problem but it does not seem to work.

This discussion is locked

All Comments