GregoryNelson
asked on
asp.net - Maintainscrollpositiononpostback does not work
I am working with VB in VS 2.0 - please supply solution in VB.
Maintainscrollpositiononpo stback does not work in Chrome or Safari browsers.
I have tried adding "MaintainScrollPositionOnP ostback="t rue"" to the Page Directive, also
Page.MaintainScrollPositio nOnPostBac k = True in the code behind.
I read your solution and added the 2 registrations for Ajax (I cannot see them now so I am going from memory, but they were written just below the aspx source page declaration) but my project did not compile, the message said something like "cannot find objects to register".
Can you assist ? I would like the scroll position to be retained on postback for not only IE and Firefox, but also Chrome and Safari
Thank you.
Maintainscrollpositiononpo
I have tried adding "MaintainScrollPositionOnP
Page.MaintainScrollPositio
I read your solution and added the 2 registrations for Ajax (I cannot see them now so I am going from memory, but they were written just below the aspx source page declaration) but my project did not compile, the message said something like "cannot find objects to register".
Can you assist ? I would like the scroll position to be retained on postback for not only IE and Firefox, but also Chrome and Safari
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Because this Q was open for some time and no-one was answering it so I thought I should close it.
In the end I had to differentiate between browsers, allowing mainstainscrollposition to apply to those browsers that accepted it and used control.focus (not really too good) form those that did not.
In the end I had to differentiate between browsers, allowing mainstainscrollposition to apply to those browsers that accepted it and used control.focus (not really too good) form those that did not.
http://forums.asp.net/t/1568732.aspx
http://stackoverflow.com/questions/3584802/is-there-any-way-to-implement-maintainscrollpositiononpostback-functionality-in-j