<小时/>
如何在不使用 scriptmanager 的情况下从 jquery 调用页面方法
最佳答案
你可以这样做
$.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)
{ }
关于jquery - 从 jquery 调用没有脚本管理器的页面方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5325721/