ASP.NET - 对服务器进行异步调用

时间:2022-12-16 13:22:33

Good morning.

We are building an ASP.NET website and in that we have one big page having 4 GridViews. Each grids have sorting feature enabled. We need to make an asynchronous call to the server for each grid (whenever a user clicks on a column of a grid view to sort) so that it renders fast (instead of full page getting refreshed each time).

我们正在构建一个ASP.NET网站,我们有一个包含4个GridView的大页面。每个网格都启用了排序功能。我们需要为每个网格对服务器进行异步调用(每当用户单击网格视图的列进行排序时),以便快速呈现(而不是每次都刷新整个页面)。

Is there a best tutorial or web reference explaining making these asynchronous calls?

有没有最好的教程或Web引用解释这些异步调用?

Thanks and Regards..

感谢致敬..

Shruthi Keerthi

3 个解决方案

#1


4  

The easiest way to do this would be to wrap each grid in an UpdatePanel and let ASP.NET ajax handle the details.

最简单的方法是将每个网格包装在UpdatePanel中,让ASP.NET ajax处理细节。

#3


1  

This looks promising

这很有希望

http://www.ajaxmatters.com/articles/asp/ajax_grid_icallbackeventhandler_p1.aspx

You could also look into ASP.NET Ajax and the UpdatePanel -- only recommended for simple, low usage pages.

您还可以查看ASP.NET Ajax和UpdatePanel - 仅建议用于简单,低使用率的页面。

#1


4  

The easiest way to do this would be to wrap each grid in an UpdatePanel and let ASP.NET ajax handle the details.

最简单的方法是将每个网格包装在UpdatePanel中,让ASP.NET ajax处理细节。

#2


#3


1  

This looks promising

这很有希望

http://www.ajaxmatters.com/articles/asp/ajax_grid_icallbackeventhandler_p1.aspx

You could also look into ASP.NET Ajax and the UpdatePanel -- only recommended for simple, low usage pages.

您还可以查看ASP.NET Ajax和UpdatePanel - 仅建议用于简单,低使用率的页面。