0
我有一個用戶登錄頁面「/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>
可能出現的問題的任何想法?
這聽起來像你正在重定向服務器端回到'Login.aspx' – 2010-11-19 10:54:20
如何讀取服務器端的UserEmail變量? – Tony 2010-11-19 10:54:42
它沒有進入.cs頁面,所以它沒有任何區別如何閱讀 – Bob 2010-11-19 11:04:02