How to overcome case sensitive problem with contains method.??

Posted by Srikanth on Stack Overflow See other posts from Stack Overflow or by Srikanth
Published on 2010-03-22T11:40:48Z Indexed on 2010/03/22 11:51 UTC
Read the original article Hit count: 110

Filed under:

Is there any solution to overcome case-sensitive problem for contains method.

I have code like below

string str = m_name;
return avobj.Viewname.Contains(str);

Eg: Welcome Here welcome here

Both are same names but case is different. If I give 'W' in search box it is returning only 1st one. but I need both names display.

I am storing the names in collection. And resultant values ( searched values ) are storing in List.

© Stack Overflow or respective owner

Related posts about .NET