使得AJAX回调在ASP.NET使用jQuery [英] Making AJAX call back in ASP.NET with jQuery
本文介绍了使得AJAX回调在ASP.NET使用jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我接受C#和VB.NET
I accept both C# and VB.NET
如果你访问这个 http://www.eol.org/pages/983558 并然后点击喜欢的形象下面的链接,你会看到在网上弹出DIV它显示的Ajax回调的忙碌状态它显示的信息之前。因此,这些信息现在还没有,直到你点击链接。
If you visit this http://www.eol.org/pages/983558 and then click on the link like the image below you'll see in-line pop-up DIV which displays a busy status of Ajax callback before it displays the information. So, the information is not there yet until you click on the link.
我想要做相同的,但ASP.NET和jQuery。如果有任何地方,以帮助我在正确的轨道上开始了吗?谢谢你。
I'd like to do the same but ASP.NET and jQuery. If there's any place to help me get started on the right track? Thanks.
推荐答案
$.ajax({
type: "POST",
url: "PageName.aspx/MethodName",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Do something interesting here.
}
});
我觉得这可能是一个很好的起点。
I think this is probably a good place to start.
这篇关于使得AJAX回调在ASP.NET使用jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文