简单的Asp.Net登录

简单的Asp.Net登录,asp.net,login,Asp.net,Login,我只想创建一个带有响应的简单登录页面。重定向,下面是我正在尝试的。我哪里做错了 protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text == "customer") { if (TextBox2.Text == "password"); } Response.Redirect("Customer.aspx");

我只想创建一个带有响应的简单登录页面。重定向,下面是我正在尝试的。我哪里做错了

 protected void Button1_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text == "customer")
        {
        if (TextBox2.Text == "password");
        }
        Response.Redirect("Customer.aspx");
    }

第一个if的结束括号需要在重定向之后。除了第二个if后面的分号外,其他都可以

protected void Button1_Click(object sender, EventArgs e) {
   if (TextBox1.Text == "customer") 
   { 
    if (TextBox2.Text == "password") 
        Response.Redirect("Customer.aspx");
   } 
}

@鲍勃很乐意帮忙