Thursday, June 28, 2012

Comparision of string value in asp.net


I have some to do some comarison onthe text file  so i display the TEXT file into the textbox and second TEXT file in to the Second Textbox  and afetr that i compare both file         


string testString1 = TextBox1.Text.ToString();
        string testString2 = TextBox2.Text.ToString();
        int result = string.Compare(testString1, testString2);
        Label1.Text = result.ToString(); 

No comments: