Dynamic dropdown list - Please look

V

VK

Hello All:

I am having this issue of populating dropdownlist with values from
database.

We have interface to add some requests, now while trying to update these
requests - HOW to populate the pre-selected value of dropdown along with
all other values from database? It is a normalized database meaning, we
are storing the course_id in main table and the actual names for these
courses exists in another table.

I tried "ddlAccMgr.SelectedIndex" - but it gives the index for that
course_id and not course_id.

Please help - many thanks.
 
A

aa7im

Look at doing something like

ddlAccMgr.Items.FindByValue("course_id").Selected = true;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top