protected void btnLogin_Click(object sender, EventArgs e)
{
if ((tbUsername.Text == "admin") && (tbPassword.Text == "admin"))
{
//验证成功,转向请求页面
FormsAuthentication.RedirectFromLoginPage(tbUsername.Text, false);
}
else
{
//输出验证失败提示信息
this.lblErrMsg.Text = "您输入的用户名和密码不正确!";
}
}