Dynamic dropdown list - Please look

Discussion in 'ASP .Net Web Controls' started by VK, Mar 21, 2005.

  1. VK

    VK Guest

    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.

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    VK, Mar 21, 2005
    #1
    1. Advertising

  2. VK

    aa7im Guest

    Look at doing something like

    ddlAccMgr.Items.FindByValue("course_id").Selected = true;
    aa7im, Mar 21, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex
    Replies:
    0
    Views:
    405
  2. KK
    Replies:
    2
    Views:
    550
    Big Brian
    Oct 14, 2003
  3. inhahe
    Replies:
    3
    Views:
    2,347
    Diez B. Roggisch
    Jan 28, 2005
  4. =?Utf-8?B?Y2luZHk=?=
    Replies:
    0
    Views:
    506
    =?Utf-8?B?Y2luZHk=?=
    Sep 21, 2006
  5. Replies:
    4
    Views:
    169
Loading...

Share This Page