Thanks Lucas. Thats what I ultimately did...
I would be happy if Microsoft develops method like this
Syntax, FindByValue(what,isCaseSensetive)
lstDSN.Items.FindByValue(srcData,false)
this is just a thought, Microsoft experts knows better than me :)
cheers !
Lucas Tam wrote:
"abcd" <ab**@abcd.com> wrote in
news:OS**************@TK2MSFTNGP09.phx.gbl:
I have ASP.NET list control
I am using
lstDSN.Items.FindByValue(srcData)
how can I find by case insensetive? I want to ignore Items case and
srcData case?
Before adding the item to the list, use the function UCASE or LCASE to
capitalize all the entires.
Otherwise you'll have to rewrite the FindByValues function to handle
case insensitivity.