おはようございます!
ユーザーのパスワードをリセットするためのタグを含めたカスタムを使用するユーザーログインページ「/Account/Login.aspx」があります-<a href="javascript:ConfirmPasswordChange();">Forgot Password?</a>
私の投稿は私のページを「/Account/LoginMethods.aspx」(ブレークポイントの起動なし)とは呼びませんが、代わりにユーザーログインページ「/Account/Login.aspx」htmlのコンテンツ全体として結果を返します。
<script language="javascript" type="text/javascript">
function ConfirmPasswordChange() {
$("#ConfiormPasswordReset").dialog({
modal: true,
autoOpen: false,
autoResize: true,
title: "Reset Password",
draggable: true,
buttons: {
'Cancel': function () {
$(this).dialog("close");
},
'Continue': function () {
SendNewPassword();
}
}
}).dialog("open");
$('#ConfiormPasswordReset').focus();
}
function SendNewPassword() {
$.post("/Account/LoginMethods.aspx", { UserEmail: $("#UserName").val() },
function (result) {
alert(result);
});
$('#ConfiormPasswordReset').dialog("close");
}
</script>
考えられる問題について何か考えはありますか?