gpt4 book ai didi

c# - 使用 jQuery 在 ASP.NET 中进行 AJAX 回调

转载 作者:行者123 更新时间:2023-12-01 08:25:54 25 4
gpt4 key购买 nike

I accept both C# and VB.NET

如果您访问此http://www.eol.org/pages/983558然后单击如下图所示的链接,您将看到内联弹出 DIV,它在显示信息之前显示 Ajax 回调的繁忙状态。因此,在您单击链接之前,信息还不存在。

alt text

我想做同样的事情,但是 ASP.NET 和 jQuery。是否有任何地方可以帮助我走上正确的轨道?谢谢。

最佳答案

Using jQuery to directly call ASP.NET AJAX page methods

$.ajax({
type: "POST",
url: "PageName.aspx/MethodName",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Do something interesting here.
}
});

我认为这可能是一个很好的起点。

关于c# - 使用 jQuery 在 ASP.NET 中进行 AJAX 回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3882628/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com