| 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 |