How to compare two strings with out Case sensitive ?

Answer Posted / minhajul islam

string str1="Hello1";
string str2="Hello2";

String.Compare(str1,str2,true)

//true if you want compare two string without case
sensative and false if you want to case sensative.

//It will return Zero if compare as equal and 1 if not.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is DLL Hell and how it is solved in .NET? please explain clearly??

1893


Difference between Response.redirect vs server.transfer?

587


What is the difference between page-level caching and fragment caching?

540


Why do you use the app_code folder in asp.net?

555


What are session cookies?

549






What is directive in asp net?

547


Who is using asp.net?

509


What are the benefits of Razor View?

540


Explain what is postback in asp. Net?

554


Explain server side state management system.

553


how can create login from create and written conde in asp.net

1783


How to turn off cookies for a page?

585


How does u call and execute a sp in .net?

553


What are the advantages of using Master Pages?

605


Explain client side state management system.

572