MaintenanceScrollPositionOnPostback ="true"; [英] MaintainScrollPositionOnPostback="true"

查看:71
本文介绍了MaintenanceScrollPositionOnPostback ="true";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在面板控件中有一个gridview.
我正在使用ASP.NET 3.5.在我的页面指令中,我将MaintenanceScrollPositionOnPostback设置为true.
我还将该属性添加到了我的web.config中.

但是,当我选择gridview的编辑"命令时,我的gridview不会保持其滚动位置.
我不使用AJAX更新面板,而只是使用普通的面板控件.

我真的不知道如何继续进行故障排除.有什么想法吗?
谢谢.

I have a gridview inside a panel control.
I am using ASP.NET 3.5. In my page directive I have set MaintainScrollPositionOnPostback to true.
I have also added the property to my web.config.

However, my gridview is not maintaining its scroll position when I select the gridview "Edit" command.
I am not using the AJAX update panel, just the plain Panel control.

I am truly at a loss for how to proceed with troubleshooting. Any ideas?
Thank you.

推荐答案

MaintainScrollPositionOnPostback用于页面而不是页面内的控件
MaintainScrollPositionOnPostback is for the Page not for controls within the page


这篇关于MaintenanceScrollPositionOnPostback ="true";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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