如何在不使用scriptmanager
的情况下从jquery调用页面方法答案 0 :(得分:3)
你可以这样做
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: "webpage.aspx/methodName",
data: "{id: '" + id + "'}",
success: getTargetSuccess,
error: getTargetFailure
});
function getTargetSuccess(result,e)
{
var data = result.d;
}
function getTargetFailure(result,e)
{ }
答案 1 :(得分:0)