How to compare two strings with out Case sensitive ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / manu
with
String.Compare(string a,string b) [result 0 only when it
is equal- since it compares by subtracting ascii of b from
ascci of a)
or
String.Equals(string a,string b) {true if it is equal]
we can achieve the same
Is This Answer Correct ? | 5 Yes | 6 No |
Answer / sekar thangavel
sting.Equals(string a,string b)
Explanation:
Determines whether two specified system.string objects have
the same values,a parameter specifies the culture,case and
sort rules used in the comparison
Is This Answer Correct ? | 4 Yes | 7 No |
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
Explain what is clr?
What is caching? What are different ways of caching in asp.net?
what is purpose of xml control in standard controls of asp.net
Explain the use of fragment caching.
which is best possible way to add data source to data grid when the data is huge(10 lack recored)how to edit a perticular row
Will session work if cookies is disabled?
What is data binding in asp net?
What would be the salary of an Asp.net developer with 1 and half year experience in indian rupees..??
Explain the advantages of asp.net.
What is owin authentication?
What are tuples?