how to compare two textbox values in c#
  • how can i check that two textbox value are same in c#.?
  • 1 Comment sorted by
  • if textbox1.text==textbox2.text
    {
    messagebox.show("same")
    }
    else
    {
    messagebox.show("dont match")
    }

    another way

    string a =textbox1.text;
    string b = textbox2.text;
    if (a.Equals(b))
    {
    Messaegbox.show("Same");
    }
    else
    {
    Mesagebox.show("Dont Match")
    }
    for further details and related topics http://www.codecorner.somee.com/

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Top Posters Weekly

Optimum Creative