maintainScrollPositionOnPostback = QUOT;真"没有在web.config中设置后全球工作,但在页面级的作品,我应该怎么办? [英] maintainScrollPositionOnPostback="true" does not work globally after setting in web.config ,but works in page level,what should I do?

查看:194
本文介绍了maintainScrollPositionOnPostback = QUOT;真"没有在web.config中设置后全球工作,但在页面级的作品,我应该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置的 maintainScrollPositionOnPostback =真正的全球web.config中的确实工作我在XP SP3下,IIS 5.1,但不用于生产服务器(赢Server 2003 SP2中使用.NET 3.5 SP1和IIS 6)。


但如果添加的 MaintainScrollPositionOnPostback =真正的作为任何<它正在像一个冠军%@ Page指令

setting maintainScrollPositionOnPostback="true" globally in web.config does work in my xp sp3 under iis 5.1 but not for production server(win server 2003 sp2 with .NET 3.5 sp1 and IIS 6).

but if add MaintainScrollPositionOnPostback="true" for any <%@ Page directive it is working like a champ.

我不知道我是否应该为web.config文件来覆盖它在IIS 6中添加一些明显的标记?


任何建议,提示或意见,将鸭preciated

I don't know if I should add clear tag for web.config to override it in IIS 6 or something?

Any Advice,tips or comments would be Appreciated

下面是在web.config中的相关章节

here is the related section in web.config

<pages maintainScrollPositionOnPostBack="true" validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" >
  <controls>
     ....       
  </controls>
</pages>

-------- ---------更新

--------update---------

我不知道什么是真正的问题,那么,当我发帖的问题,现在我都没有问题maintainScrollPositionOnPostback在我的Windows 7新系统=真。

I don't know what was the real problem then when i post the question ,right now i have no problem with maintainScrollPositionOnPostback="true" in my new system with windows 7.

推荐答案

我有类似的问题。但是经过检查标记发现问题是与更新面板之一。检查更新面板,如果您有类似的问题。

I had similar problem. But after inspecting markup found out problem was with one of the update panel. Check update panels if you have similar problem.

这篇关于maintainScrollPositionOnPostback = QUOT;真&QUOT;没有在web.config中设置后全球工作,但在页面级的作品,我应该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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