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

senthil27 reputationPosted Nov 16, 2009, 8:58 PM EST
Plz Help...
Lalit MRank #1,186 · 1.5K reputationPosted Nov 16, 2009, 9:15 PM EST
For good Articles using vb.net might be help.
senthil27 reputationPosted Nov 16, 2009, 9:23 PM EST
Roy Spoolder29 reputationPosted Nov 26, 2009, 1:07 AM EST
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
muralekarthick arumugam11 reputationPosted Dec 1, 2009, 5:39 AM EST