ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to compare two strings with out Case sensitive ?
 Question Submitted By :: Mail2ssuresh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to compare two strings with out Case sensitive ?
Answer
# 1
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 ?    3 Yes 4 No
Sekar Thangavel
 
  Re: How to compare two strings with out Case sensitive ?
Answer
# 2
Here is the code that solve ur problem:

       string str = "virtual";
        if (str.Equals("virtual"))
        {
          // your code here....
        }
 
Is This Answer Correct ?    4 Yes 4 No
Navin.cp
 
 
 
  Re: How to compare two strings with out Case sensitive ?
Answer
# 3
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 ?    4 Yes 1 No
Minhajul Islam
 
  Re: How to compare two strings with out Case sensitive ?
Answer
# 4
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 ?    1 Yes 2 No
Manu
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is postback implementation?when pre-render event n init event is fired? Ness-Technologies1
How many Controls present in Asp dot net? TCS5
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?  4
Difference between .NET components and COM components? Microsoft1
What methods are fired during the page load?  1
which is the new version of IIS SERVER  1
What is the best way to search any exact information on google? Intellevate2
Where can we set the specific variables for a application and Session objects ?  2
Types of caching ? Digital-GlobalSoft1
What is the namespace used to store the information about the user?s locale?  1
What is dataset and uses of dataset ? TCS4
What's a bubbled event?  2
About DataAdapters ? Accenture7
Difference between datagrid and datareader?  1
How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Another Folder Name "Check".Check Folder Is Out Side Of Our Project ?Check Folder Have Verify.Js File. My Question Is How To Call Verify.Js File. Phoenix-Technologies2
What are the page level transaction and class level transaction? Satyam1
How to implement caching? Microsoft1
When is validation done on the client? How does client-side validation improve the efficiency of an application?  1
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ? eXensys2
Types of optimization and name a few ? Accenture3
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com