Live Chat Icon For mobile
Live Chat Icon

How can we programmatically verify whether the UserName and Password is Correct?

Platform: ASP.NET| Category: Basic

The programmatic verification of username and password can be done by the below code by the Login1_Authenticate method

protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
	if((Login1.UserName=='User')&&(Login1.Password=='Password'))
	{
		Label1.Text='LogIn Successful';
	}
	else
	{
		Label1.Text='LogIn Failed - Try Again';
	}
}

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.