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
Explain Features in ASP.NET
What is the difference between server-side scripting and client-side scripting?
What is paging in context of Memory?
Define a web service in .net?
Can you explain how ASP.NET application life cycle and page life cycle events fire?
What is application session?
Explain exception handling in .net.
How is application management and maintenance improved in asp.net 2.0?
What is custom attribute? How to create?
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
How can we access static variable?
How to retrieve user name in case of Window Authentication?
How ViewstateMac works?
Who can consume WebAPI?
How should I destroy my objects in asp.net?