Check existence of value in drop down list

Discussion in 'ASP .Net Web Controls' started by Andy, Jun 15, 2004.

  1. Andy

    Andy Guest

    Is there a way to check and see if a value exists in a drop down list?
    I want to check and see if the value "No Status" is in a drop down list, and if it isn't, then I want to add it. I know the syntax to add it to the drop down list, but am not sure if there is a way to check if it is already there.

    Any help is appreciated.

    Thanks
     
    Andy, Jun 15, 2004
    #1
    1. Advertising

  2. Andy

    Guest

    On Tue, 15 Jun 2004 10:31:01 -0700, "Andy"
    <> wrote:

    >Is there a way to check and see if a value exists in a drop down list?
    >I want to check and see if the value "No Status" is in a drop down list, and if it isn't, then I want to add it. I know the syntax to add it to the drop down list, but am not sure if there is a way to check if it is already there.
    >
    >Any help is appreciated.
    >
    >Thanks
    >
    >
    >


    <dropdownlist>.Items.FindByValue

    -Adam
     
    , Jun 15, 2004
    #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. SirPoonga
    Replies:
    2
    Views:
    822
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    1,077
    weiwei
    Jan 5, 2007
  3. msimmons
    Replies:
    0
    Views:
    551
    msimmons
    Jul 16, 2009
  4. Replies:
    5
    Views:
    319
  5. Replies:
    3
    Views:
    324
Loading...

Share This Page