i have two text box and one button one textbox for username and another textbox for password
if i click button it should check username and password from the database
if correct it can redirected to another page else it should display error that username and password not correct in a label
Please Help dear ones...
Loading
muralekarthick arumugamPosted Dec 1, 2009, 10:39 AM
Roy SpoolderPosted Nov 26, 2009, 6:07 AM
private void btnLogin_Click(object sender, EventArgs e)
{
if (tbUsername.Text == "Test")
{
if (tbPassword.Text == "Test")
{
MessageBox.Show("Welcome Back");
Application.Exit();
}
else
{
MessageBox.Show("What's wrong? Did you forgot your password?");
}
}
else
{
MessageBox.Show("What's wrong? Did you forgot your username?");
}
}
Be sure, you enter the good names in your design. Because it is essential for working !
I hope I've helped you out of the problems.
Greetings,
Roy Spoolder
senthilPosted Nov 17, 2009, 2:23 AM
Lalit MPosted Nov 17, 2009, 2:15 AM
For good Articles using vb.net might be help.
senthilPosted Nov 17, 2009, 1:58 AM
Plz Help...