Click here to Skip to main content
15,885,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a website written in ASP.Net and is often used on mobile phones or tablets. Before upgrading from .Net 2.0 to .Net 4.0, mobile users were able to zoom in, click a button, and the page would refresh to the exact same position and zoom level. Now when they click on a button while zoomed in, the page becomes zoomed out on the refresh.
It appears as if the maintainscrollpositionOnPostBack is not working on phone's browsers.

Is there a way too keep the zoom level and position on the refresh?

What I have tried:

There does not appear to be a setting outside of maintainscrollpositionOnPostBack. We were looking into attempting to save the position and zoom and then putting it back on the refresh.
Posted
Updated 4-Aug-20 5:51am
v2
Comments
Afzaal Ahmad Zeeshan 3-Aug-20 21:36pm    
As far as I know, browsers control the zoom and not ASP.NET (regardless of version 2, 4 or the vNext).

Was ASP.NET handling the zoom manually?
boyson14 4-Aug-20 9:00am    
No, the maintainscrollpositionOnPostBack seemed to do the trick on 2.0.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900