请大神赐教 下面代码中出现错误 当前上下文中不存在名称“ inputName”,“inputPassword”
protected void Button1_Click(object sender, EventArgs e)
{
if (CheckAccount(inputName.Value.ToString(), inputPassword.Value.ToString())) //当前上下文中不存在名称“ inputName”,“inputPassword”
{
Session["father"] = "";
Session["son"] = "";
Session["user"] = inputName.Value.ToString();
Session["password"] = inputPassword.Value.ToString();
Response.Redirect("~/MainFrm.aspx");
employee.EmployeeName = Session["user"].ToString();
employee.Password = inputPassword.Value.ToString();
}
else
{ Response.Write("<script>alert('用户名或密码输入错误!')</script>"); }
}