开发者

maintainscrollpositiononpostback not working with firefox

I am using VS 2008. I like the feature maintainscrollpositiononpostback. It works fine with IE 8. But it does not work consistently with Firefox. Sometimes, instead the line I click on goes to the bottom of the page. The field I am trying to refresh is with a div tag with overflow set to auto. Also I have several update panels with up开发者_运维技巧datemode set to conditional. This means only the panel affected should be refreshed. This is also not working in the case on Firefox.

I have searched the web for possible solutions but none of them work for me.

Most of my users use Firefox so this is a problem for me.

Thanks in advance,

Bob


scrollsaver to the rescue? http://en.hasheminezhad.com/scrollsaver

I found this little js file a few weeks ago after implementing Post/Redirect/Get on a few of my pages. It may enable you to turn off maintain on your pages if you throw it in the master. I haven't fully tested it with ff4/5 or chrome...


Edit the Browser Capabilities file, and explicitly set it so that MaintainScrollPositionOnPostback is supported on Safari Browsers.


you can use javascript for this.. chek it out..

http://weblogs.asp.net/andrewfrederick/archive/2008/03/04/maintain-scroll-position-after-asynchronous-postback.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜