jQueryの初心者で、jQuery Ajaxがデータを返す方法がわかりません。私はjQueryを取得するAjaxがAsp.Netでデータを返す
[WebMethod(EnableSession = false)]
protected int SignIn()
{
return 0;
}
以下のようないくつかのデータを取得するためにいくつかの簡単な機能を持っており、私の.aspxページに私はこの
$(document).ready(function() {
$("#si").click(function
() {
$.ajax({
type: "POST",
url: "SignIn.aspx/SignIn",
contentType: "application/json",
success: function (txt) {
alert(txt);
}
});
});
});
を持っていますが、アラートで、私は全体SignIn.aspx(すべてのHTMLタグなどを取得しますに)。 SignIn()が返す0を警告する方法?ありがとう
SignIn機能は.asmx webserviceにありますか? – tanathos