views:

791

answers:

2

the title is already clear but to add more info ,the production server is windows server 2003 sp2 with .NET 3.5 sp1.

setting maintainScrollPositionOnPostback="true" globally in web.config does work in my xp sp3 under iis 5.1 but not for production server.

but if add maintainScrollPositionOnPostback="true" for any <%@ Page directive it is working like a champ. 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

<pages maintainScrollPositionOnPostBack="true" validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" >
  <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  </controls>
</pages>
A: 

might be a problem with case sensitivity - try maintainScrollPositionOnPostback (lowercase m)

Marek Karbarz
thank you.but no.I edit the main question
imanabidi
A: 

excellent, thanks for you help

Danny