如何在不使用Ajax的情况下在asp.net中异步回发 [英] How to post back asynchronously in asp.net without using ajax
本文介绍了如何在不使用Ajax的情况下在asp.net中异步回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不使用Ajax updatepanel的情况下进行异步回发
在asp.net2.0中,c#
How can we do asynchronous post back without using ajax updatepanel
in asp.net2.0 c#
推荐答案
有很多方法可以做到:
1)使用PageMethods
2)ICallBackEventHandler
3)XmlHttpRequest
有关实现,请参考以下内容:
在ASP.NET AJAX中使用页面方法 [ XMLHttpRequest调用 [ ^ ]
希望它能对您有所帮助:)
there are lot of ways to do it like:
1) using PageMethods
2) ICallBackEventHandler
3) XmlHttpRequest
For implementation refer these:
Using Page Methods in ASP.NET AJAX[^]
XMLHttpRequest Call[^]
hope it helps :)
我能想到的async
通信的唯一方法是通过
1.使用uppdatepanel
和其他服务器控件.
2.使用xmlhttprequests
.
3.使用jQuery
AJAX.
我知道您特别提到了没有AJAX(坦率地说,我不明白为什么)仍然会给您几个链接,指定上述3种方法.看看是否可以使用其中任何一个.
面向初学者的AJAX(第1部分)-了解ASP.NET AJAX服务器控件 [ ^ ]
面向初学者的AJAX(第2部分)-使用XMLHttpRequest和jQuery AJAX实施级联下拉列表 [ ^ ]
另外,请您告诉我您为什么要NO_AJAX吗?有什么要求或约束要求吗?
The only way i can think ofasync
communication is by
1. usinguppdatepanel
and other server controls.
2. usingxmlhttprequests
.
3. usingjQuery
AJAX.
I know you have specifically mentioned no AJAX( and frankly i dont understand why) still i would give you a couple of links specifying the above 3 mentioned approaches. See if you could use any of them.
AJAX for Beginners (Part 1) - Understanding ASP.NET AJAX Server Controls[^]
AJAX for beginners (Part 2) - Using XMLHttpRequest and jQuery AJAX to implement a cascading dropdown[^]
Also, Could you please let me know why do you want NO_AJAX? is there some requirement or constraint demanding this.
这篇关于如何在不使用Ajax的情况下在asp.net中异步回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文