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

Explain a program using razor view engine to create a simple application? : asp.net mvc

505


How to create discussion forum in asp.net mvc? : Asp.Net MVC

537


Define managed code and managed data in .net?

515


What is tracing? Where is it used?

558


Are cookies client side or server side?

500






What are the memory-mapped files?

526


What is the concept of postback in asp.net?

592


Is asp.net mvc still used? : Asp.Net MVC

516


What is base class of button control in .net?

531


What does aspcompat="true" mean?

561


Explain the steps to be followed to use passport authentication.

599


Explain what is an assembly?

562


Can you explain how ASP.NET application life cycle and page life cycle events fire?

579


How do you create a master page?

559


What is difference between mvc and asp.net? : Asp.Net MVC

576