protected void Button1_Click(object sender, EventArgs e) { string email = txtEmail.Value; string vcode = txtVerifyCode.Value; if (vcode != Session["SafeCode"].ToS().ToLower()) { Js.AlertAndGoback("验证码输入错误,请重新输入!"); return; } else { UserAction ua = new UserAction(); var result = ua.FindPassword(email); if (result.Success) { Js.AlertAndChangUrl(result.Text, "/"); } else { Js.AlertAndGoback(result.Text); } } }