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 are the types of caching in asp.net?

541


What is %20 in a url?

533


What is viewstate? In which event of the page life cycle, is the viewstate available?

597


Explain a program using code nuggets to create a simple application? : asp.net mvc

500


Explain the Session state management options available with ASP.NET?

560






What is the difference between ASP.NET Webforms and ASP.NET MVC?

600


What are the merits and demerits of viewstate?

570


Can you explain one critical mapping? Performance issue which one is better?

458


Give some salient points of difference between request processor and request dispatcher.

605


what are the web form events available in asp.net?

552


What are sql notifications and sql invalidations?

522


i want the asp.net technical questions and answeres

1595


What is a uri query?

544


What is a 401 redirect?

495


Less than one page, how many windows will you be able to maintain?

556