加载程序图像在页面上呈现 [英] loader image on page rendering

查看:85
本文介绍了加载程序图像在页面上呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我对gridview进行排序时,页面的所有内容都会重新加载.这样会给人留下不好的印象.
我只希望特定区域重新加载,并显示加载程序图像.

When i sort the gridview, all the contents of the page reload. So it create a bad impression.
I want that only the particular area reloads and it show a loader image.

推荐答案

在ASP.NET中使用UpdatePanel并向其中添加GridView .确保在.aspx文件中也添加了ScriptManager .然后使用UpdatePanel的触发器,其中将包含将重新加载Gridview的控件.

我已经在这里回答了:选中了事件不在更新面板中触发 [ http://www.asp.net/ajax/tutorials/understanding-asp-net-ajax-updatepanel-triggers [
Use an UpdatePanel in your ASP.NET and add a GridView into it. Make sure you have added ScriptManager in the .aspx file too. Then use the Triggers of the UpdatePanel which will contain the controls which will reload the Gridview.

I have answered it here : checked chaged event is not firing within update panel[^]
In case you don''t know how to use an UpdatePanel, check out this site : http://www.asp.net/ajax/tutorials/understanding-asp-net-ajax-updatepanel-triggers[^].

Hope it helped.


这篇关于加载程序图像在页面上呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆