Can not add/modify dropdown liat after datasource has been loaded

Discussion in 'ASP .Net' started by =?Utf-8?B?TWVyZGFhZA==?=, Oct 20, 2004.

  1. Hi,

    In my dropdown I bind to a datasource. After that I try to do one of the
    following:
    1. Add an Item to the dropdown using dd.Items.Add(newe ListItem("textstr"));
    2. Change the text of an existing item in the dropdown. For this one I use
    the
    following:pubDD.Items[pubDD.Items.IndexOf(pubDD.Items.FindByText("textstr"))].Text=otherText;

    Neither one works.

    Thanks for any suggestions
    =?Utf-8?B?TWVyZGFhZA==?=, Oct 20, 2004
    #1
    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. Tom Vergote
    Replies:
    4
    Views:
    446
    Tom Vergote
    Jan 29, 2004
  2. =?Utf-8?B?TWVyZGFhZA==?=
    Replies:
    5
    Views:
    5,844
    neskire
    Nov 7, 2006
  3. Jim Bancroft
    Replies:
    4
    Views:
    9,189
    Saravana
    Jan 6, 2005
  4. Kylin
    Replies:
    1
    Views:
    375
  5. Liming
    Replies:
    3
    Views:
    132
Loading...

Share This Page