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....:-/:-/:-/

If (textBox1.Text.Equals(textBox2.Text)) Then
   ' your text is equal
Else 
   ' your text is not equal
End If
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:-/

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

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

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

Thanks for ur reply....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.