Home All Groups Group Topic Archive Search About
Author
17 May 2005 5:15 PM
abcd
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

Author
18 May 2005 6:28 PM
Brock Allen
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



Show quoteHide quote
> 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
>
Author
19 May 2005 9:56 PM
abcd
Yep. thats what I am doing now...

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


Show quoteHide quote
"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:758127632520125145094288@msnews.microsoft.com...
> 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
>>
>
>
>