Creating Dropdown List dynamically and setting the selected value

Discussion in 'ASP .Net Web Controls' started by Palmi, Nov 6, 2007.

  1. Palmi

    Palmi Guest

    Hi, I have a problem with setting the select value to items in a dropdown list,
    I create dropdown list in a loop and set unique id to it but I have to set
    the selected index in every dropdown list but not the same index.
    How can I accomplish that?

    thx
    Palmi, Nov 6, 2007
    #1
    1. Advertising

  2. Hi, Palmi,

    After populating the DropDownList, set the desired index.

    You just need to know what index you require for each DDL.

    Regards,

    Paulo Santos
    http://pjopndevelopment.50webs.com

    On Nov 6, 9:59 am, Palmi <> wrote:
    > Hi, I have a problem with setting the select value to items in a dropdown list,
    > I create dropdown list in a loop and set unique id to it but I have to set
    > the selected index in every dropdown list but not the same index.
    > How can I accomplish that?
    >
    > thx
    PJ on Development, Nov 8, 2007
    #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. Scott Allen
    Replies:
    1
    Views:
    855
    Scott Allen
    Aug 25, 2004
  2. Andy Sutorius

    how to get selected value from dropdown list

    Andy Sutorius, Mar 15, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    82,242
    raouf2me
    Oct 29, 2012
  3. =?Utf-8?B?SklNLkgu?=

    Q: dropdown list, no selected value

    =?Utf-8?B?SklNLkgu?=, Apr 12, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    608
    Eliyahu Goldin
    Apr 12, 2005
  4. vishnu
    Replies:
    1
    Views:
    1,187
    Patrick.O.Ige
    Mar 25, 2006
  5. Replies:
    1
    Views:
    689
Loading...

Share This Page