简体   繁体   English

刷新数据而无需重新加载

[英]Refreshing data without reloading

I want to refresh data in ASP.NET without reloading page. 我想刷新ASP.NET中的数据而无需重新加载页面。 If it is possible I don't want to use AJAX. 如果可能,我不想使用AJAX。

I am interesting in clearly .NET 我对.NET很感兴趣

Try PokeIn a Comet implementation for ASP.NET 在ASP.NET的Comet实现中尝试PokeIn

You can also use SignalR which is officially supported by Microsoft. 您也可以使用Microsoft正式支持的SignalR

If you don't want to use AJAX you can use JQuery to do an Async Http request and refresh only the portion of the page you are interested in (Partial Rendering). 如果您不想使用AJAX,则可以使用JQuery进行Async Http请求,并仅刷新页面中您感兴趣的部分(部分渲染)。

http://api.jquery.com/jQuery.get/ http://api.jquery.com/jQuery.get/

http://api.jquery.com/jQuery.post/ http://api.jquery.com/jQuery.post/

you can't refresh a portion of the page without using any client side framework (lots of years ago when JQuery was not out yet and JavaScript was not used we were using IFrame to achieve that but today would be really bad) 您必须在不使用任何客户端框架的情况下刷新页面的一部分(很多年前还没有使用JQuery且未使用JavaScript的情况下,我们使用IFrame来实现这一点,但今天确实很糟糕)

You can use UpdatePanel to refresh your data. 您可以使用UpdatePanel刷新数据。

http://ajax.net-tutorials.com/controls/updatepanel-control/ http://ajax.net-tutorials.com/controls/updatepanel-control/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM