示例#1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            GMUser user = (GMUser)Session["user"];
            bool   res  = user.doLogin(txtAccount.Text, txtPassword.Text);

            if (res)
            {
                Response.Redirect("~/appaspx/DailyDeviceActivate.aspx");
            }
            else
            {
                m_opRes.InnerText = "账号或密码错";
            }
        }