How to compare two strings with out Case sensitive ?

Answer Posted / navin.cp

Here is the code that solve ur problem:

string str = "virtual";
if (str.Equals("virtual"))
{
// your code here....
}

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between debug and release?

732


What is session handling in a webfarm, how it can work with its limits?

858


What are the components of ado.net?

716


How can we call webservices in Banking Applications? and where we are using it?

1750


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

774


Explain login controls.

821


how to retrieve property settings from xml .config file.

735


How u refer webservices?

1699


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1749


How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

743


What is & in a url?

735


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4467


Where is cookie used in asp.net?

790


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

817


What is the part of url?

736