0

On a mobile browser, a user would zoom in and click a button. After the postback, the page would return to the same position and zoom as before. However, when the site was upgraded to .Net 4.0, the page loses the position and zoom on a postback. If this functionality is lost in .Net 4.0, is there a way that I can duplicate this functionality?

    <asp:UpdatePanel runat="server" id="upPockets" updatemode="Conditional" >
                    <ContentTemplate>
                        <asp:Panel ID="panPockets" runat="server" Width="100%" >
                         <asp:PlaceHolder ID="plPockets" runat="server" ></asp:PlaceHolder>
                      </asp:Panel>
                     </ContentTemplate>
               </asp:UpdatePanel>
  • Welcome to StackOverflow! Can you provide some code to show what was working that isn't working after you upgraded? – Jesse Smith Aug 05 '20 at 14:38
  • Thank you! There really isn't any code. I had the MaintainScrollPositionOnPostback at the top of the page and that seemed to do it automatically. – HelloWorld999 Aug 05 '20 at 18:31
  • Maybe this will help The placeholder gets dynamically filled with buttons and those button presses is when the page doesn't save the location and zoom – HelloWorld999 Aug 05 '20 at 19:41
  • 1
    @JesseSmith Also, is there any easy way to copy code into here? And how do I get around the limit? – HelloWorld999 Aug 05 '20 at 19:49
  • Instead of putting the code in a comment, edit your original question. That way, you can use the built-in code formatting tools that SO provides! – Jesse Smith Aug 06 '20 at 18:46

0 Answers0