2017-11-23 6 views

答えて

1

最初のifのリスティングの後ろにある必要があります。 2番目以降のセミコロンのほかに、他のものはすべてOKです。

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

うん。それだった! – Bob

+0

@Bobがうれしい – BlazeChill

関連する問題