Link to home
Start Free TrialLog in
Avatar of GregoryNelson
GregoryNelson

asked on

asp.net - Maintainscrollpositiononpostback does not work

I am working with VB in VS 2.0 - please supply solution in VB.

Maintainscrollpositiononpostback does not work in Chrome or Safari browsers.

I have tried adding "MaintainScrollPositionOnPostback="true"" to the Page Directive, also
Page.MaintainScrollPositionOnPostBack = 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.
Avatar of Rahul Agarwal
Rahul Agarwal
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of GregoryNelson
GregoryNelson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GregoryNelson
GregoryNelson

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.