Я хочу вызвать веб-метод, используя метод jquery ajax get. Но он не вызывается. ниже моего javascript и кода
javascript:
function RetrievePassword() {
var forgotEmail = $("#txtForgotEmail").val().trim();
//call the ajax method to retrieve the password from the email address provided.
$.ajax({
type: "GET",
url: "test.aspx/RetrievePassword?email=" + forgotEmail,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (result) {
alert(result.d);
},
error: function () {
alert("Error while calling the server!");
}
});
}
мой код функции
[WebMethod]
[ScriptMethod(UseHttpGet=true)]
public static string RetrievePassword(string email)
{
//some code
}
Может ли кто-нибудь помочь мне в этом..
j-query
ссылку? - person Suraj Singh   schedule 27.01.2014