0

Im Yooki .....
Im doing my project in asp .net with vb coding...
Now i want to compare Two Strings in textbox....
For ex: Thomus .CA and Thomus .CC....Here i have to compare whether the two members r same r not...
Im so new to this site and also new to asp .net...
can one guide me ....
Can anyone give suggestions with a simple example means means it would be great help to do my project....
Thanks in advance....:-/:-/:-/

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by yookify
0
If (textBox1.Text.Equals(textBox2.Text)) Then
   ' your text is equal
Else 
   ' your text is not equal
End If

Edited by apegram: n/a

0
If (textBox1.Text.Equals(textBox2.Text)) Then
   ' your text is equal
Else 
   ' your text is not equal
End If

Thanks for ur reply....
I want to know how to compare letter by letter from two textboxs.if u know means can u please guide me with a simple eg....
Thanks in advance:-/

0

Thanks for ur reply....
I want to know how to compare letter by letter from two textboxs.if u know means can u please guide me with a simple eg....
Thanks in advance:-/

What he's stated is inbuilt string method. When you've something inbuilt then why do you want to compare it letter by letter ??

That was the simple example, for more info check out msdn

0

What he's stated is inbuilt string method. When you've something inbuilt then why do you want to compare it letter by letter ??

That was the simple example, for more info check out msdn

Thanks I got ur point

0
If (textBox1.Text.Equals(textBox2.Text)) Then
   ' your text is equal
Else 
   ' your text is not equal
End If

Thanks for ur reply....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.