回到asp.net后保持位置 [英] maintain position after post back in asp.net

查看:91
本文介绍了回到asp.net后保持位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中有一个[page],其中存在许多控件,这些控件具有自动回发属性true.
所以我希望回发后的位置应该相同,但每次回发后它都到达页面顶部.
MaintenanceScrollPositionOnPostback ="true"
属性根本不起作用.

Hi , i have a p[age in asp.net in which a lot of controls are present which have auto post back property true.
so i want that after post back position should be same but it goes to top of the page after every post back .
MaintainScrollPositionOnPostback="true"
property doesn''t work at all.

推荐答案

有时坐着可能在Firefox或Chrome中不起作用.

如果您的问题是,您可以在这里找到答案:

http://www.aspsnippets.com/Articles/ASPNet- MaintenanceScrollPositionOnPostback-not-working-in-Firefox-and-Chrome.aspx [
Some time sit maynot work in Firefox or Chrome.

If your problem is that you can find answer for this here:

http://www.aspsnippets.com/Articles/ASPNet-MaintainScrollPositionOnPostback-not-working-in-Firefox-and-Chrome.aspx[^]


You can use the same code even you are facing the problem for IE also.

This link is very helpful for your problem


这篇关于回到asp.net后保持位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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