search criteria

Discussion in 'ASP .Net Web Controls' started by abcd, May 17, 2005.

  1. abcd

    abcd Guest

    I am using dropdownlist control

    I have entries like

    Aaa
    Bbb
    Ccc
    Ddd

    I am adding new record and I dont want to duplicate it....my record may be
    AAA or aaa or aAA or aaA

    How can I use Items.FindByText and search the case insensetive records for
    the dropdownlist control.....

    thanks
     
    abcd, May 17, 2005
    #1
    1. Advertising

  2. abcd

    Brock Allen Guest

    Sounds like you'll have to iterate over the items manually and call ListItem.Value.ToLower()
    and do the comparison that way.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > I am using dropdownlist control
    >
    > I have entries like
    >
    > Aaa
    > Bbb
    > Ccc
    > Ddd
    > I am adding new record and I dont want to duplicate it....my record
    > may be AAA or aaa or aAA or aaA
    >
    > How can I use Items.FindByText and search the case insensetive
    > records for the dropdownlist control.....
    >
    > thanks
    >
     
    Brock Allen, May 18, 2005
    #2
    1. Advertising

  3. abcd

    abcd Guest

    Yep. thats what I am doing now...

    It will be nice if FindByText function itself can do more ....


    "Brock Allen" <> wrote in message
    news:...
    > Sounds like you'll have to iterate over the items manually and call
    > ListItem.Value.ToLower() and do the comparison that way.
    >
    > -Brock
    > DevelopMentor
    > http://staff.develop.com/ballen
    >
    >
    >
    >> I am using dropdownlist control
    >>
    >> I have entries like
    >>
    >> Aaa
    >> Bbb
    >> Ccc
    >> Ddd
    >> I am adding new record and I dont want to duplicate it....my record
    >> may be AAA or aaa or aAA or aaA
    >>
    >> How can I use Items.FindByText and search the case insensetive
    >> records for the dropdownlist control.....
    >>
    >> thanks
    >>

    >
    >
    >
     
    abcd, May 19, 2005
    #3
    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. VisionSet
    Replies:
    2
    Views:
    318
    VisionSet
    Oct 28, 2004
  2. VisionSet
    Replies:
    4
    Views:
    381
    John C. Bollinger
    Dec 6, 2004
  3. Steve
    Replies:
    11
    Views:
    709
  4. jm
    Replies:
    3
    Views:
    253
  5. Leonard Milcin

    modeling search criteria in xsd [LONG]

    Leonard Milcin, May 18, 2008, in forum: Java
    Replies:
    2
    Views:
    657
    Leonard Milcin
    May 18, 2008
Loading...

Share This Page