避免在Asp.net中刷新页面 [英] Avoid Page Refreshing in Asp.net

查看:62
本文介绍了避免在Asp.net中刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在使用Asp.net C#和数据库作为sqlServer2005.

在我的主页面"上,我的菜单为主页",显示","Changepasswd",注销".当我单击这些菜单进入下一页时.正在刷新完整页面.如何避免页面刷新.

我还使用了脚本管理器和更新面板.

顺便说一下,我的菜单在主页面中.

请提供有关此刷新问题的任何建议.


谢谢.

Dear All,

Am Using Asp.net C# and Database as sqlServer 2005.

On My MASTER PAGE i have Menus as Home, Display, Changepasswd, Logout. When i click these menus to go for next page. COMPLETE PAGE IS REFRESHING. How to Avoid Page REfreshing.

I also Used Script manager and Update Panel.

By the way my Menus are in MASTER PAGE.

Please can any one ADVICE about this Refreshing Problem.


Thanks.

推荐答案

通常菜单调用不同的页面,刷新整个页面是正常的.

如果您要谈论菜单动画",则可能需要将它们设为客户端(js/jquery)
我不喜欢将菜单放在面板中

有了一段代码,我们可以为您提供更精确的帮助
well usually menus call different pages and it is normal to the whole page to refresh.

if you''r talking about "menu''s animations" probably you need to make them client side (js/jquery)
i don''t like putting the menu in a panel

with a piece of code we could help you more precisely


,因为Home,Display,Changepasswd,Logout将保持不变,我们可以尝试使用缓存...如果您的updatepanel没有响应. ..

http://msdn.microsoft.com/en-us/library/aa478965.aspx [ ^ ]
since the Home, Display, Changepasswd, Logout will remain the same can we try with cache ...if ur updatepanel is not responding...

http://msdn.microsoft.com/en-us/library/aa478965.aspx[^]


您好,Ranjith,

在存在重定向到另一个页面的情况下,无论您使用updatepanel还是其他任何东西,它总是会刷新.
Hi Ranjith,

Where there is a case of redirecting to another page, It always get refreshed either you use updatepanel or anything else.


这篇关于避免在Asp.net中刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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