findByValue

  • Thread starter Thread starter abcd
  • Start date Start date
A

abcd

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?

Thanks
 
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.
 
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 !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top