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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 


 

Company >> Protech >> Interview Questions >> ASP.NET Interview Questions
 
  Placement Papers Interview Questions (1)   OOAD Interview Questions (31)   UML Interview Questions (4)
  QA Concepts Interview Questions (2)   SQL Server Interview Questions (1)   Dot Net General Interview Questions (1)
  ADO.NET Interview Questions (2)   ASP.NET Interview Questions (3)   C Sharp Interview Questions (2)
 
Back to Questions Page
Question   How to compare two strings with out Case sensitive ? Rank Answer Posted By  
 Interview Question Submitted By :: Mail2ssuresh
I also faced this Question!!   © ALL Interview .com
Answer
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
 
4 Sekar Thangavel
 
 
Answer
Here is the code that solve ur problem:

       string str = "virtual";
        if (str.Equals("virtual"))
        {
          // your code here....
        }
 
5 Navin.cp
[No]
 
 
Answer
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.
 
5 Minhajul Islam
[No]
 
 
 
Answer
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
 
0 Manu
[No]
 
 
Question   How to kill session? Rank Answer Posted By  
 Interview Question Submitted By :: Suresh
I also faced this Question!!   © ALL Interview .com
Answer
just write session["name"]=null;
 
0 Sudhir Kunnure
 
 
Answer
session.abandont
 
0 Srikanth
 
 
Answer
using
session.abandon method
 
0 Payal
 
 
Answer
Session.RemoveAll();
 
0 Viral
 
 
Answer
by using session.kill()
 
0 Kinge Amol
 
 
Answer
by using session.abandon()
this cancels the current session immediately and releases 
all memory it occupied
 
4 Divya
 
 
Answer
session.abandon();
 
0 Santhi
 
 
Answer
there are two ways to kill the session
1:abandon method
2:don't write anything in session it will automatically
kill
 
0 Anil
 
 
Answer
You can use 
Session.Abandon();
Or 
Session.RemoveAll();
or 
Session.Clear();

But it is better to use Session.Abandon()
because it will removes associated session is also

http://prajeeshkk.blogspot.com/
http://dotnetbird.wordpress.com/
 
5 Prajeesh
 
 
Answer
There is nothing like Session.Kill in ASP.NET. So please 
update this. Best answer is Session.Abandon
 
0 Kailash Dhondiyal
 
 
Answer
We can use these to clear session
Session.Abandon();
this.sessio.clear();
 
0 Siva Vardhan
 
 
 
Back to Questions Page
 
 
 
 
 
   
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