StatCounter

View My Stats

Tuesday, February 5, 2008

Case Insesitive string Comparison in .NET

string a="hi";

if (a.ToLower()=="HI".ToLower())
{
Response.Write("Matching");
}
else
{
Response.Write("Not Matching");
}


The Result is: Matching
a->String Name

No comments: