如何解决回发上的Filckring问题 [英] How to resolve Filckring issue on postback

查看:57
本文介绍了如何解决回发上的Filckring问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在回发时设置div滚动位置。它确实如此,但在设置scrollposion时它会闪烁。设置滚动位置时我该怎么做才能避免闪烁?

我在javascript pageLoad方法上设置滚动位置。

Hi,
I am setting div scroll postion on postback. it does but it flicker when set the scrollposion. What should i do to avoid flickering when set scroll position?
I am setting scroll position on javascript pageLoad method.

推荐答案

你会考虑吗?使用ASP.Net Ajax Update面板作为解决方案?它支持部分页面回发。您可以将您的web元素放在此更新面板中,这会触发回发和作为该回发的一部分呈现的控件。



请注意你将不得不在页面顶部添加AJAX 脚本管理器以使用更新面板功能。



使用此链接作为使用AJAX更新面板功能的指南。执行此操作后,回发闪烁将减少到最小零。
Will you consider using ASP.Net Ajax Update panel as a solution? It supports partial page postback. You may put your web element inside this update panel, which is triggering the postback and the controls which are getting rendered as a part of that postback.

Please note that you will have to add AJAX Script manager at the top of the page to use update panel feature.

Use this link as guide to use AJAX update panel feature. Postback flickering will be reduced to a minimal zero after implementing this.


这篇关于如何解决回发上的Filckring问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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