Ejemplo n.º 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string password = user.researchPassword(TextBox1.Text, Label1.Text, TextBox2.Text);

        if (password != "")
        {
            Response.Write("<script>alert('密码为" + password + ",请记住!');window.location.href='login.aspx';</script>");
        }
        else
        {
            Response.Write("<script>alert('答案错误!');</script>");
        }
    }