skip to Main Content

Javascript – Maintain screen position fails to load the code behind actions – Asp.net

Using the below code to retain screen position <script type="text/javascript"> var xPos, yPos; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(BeginRequestHandler); prm.add_endRequest(EndRequestHandler); function BeginRequestHandler(sender, args) { xPos = $get('#UpdatePanel_1').scrollLeft; yPos = $get('#UpdatePanel_1').scrollTop; } function EndRequestHandler(sender, args) { $get('#UpdatePanel_1').scrollLeft = xPos; $get('#UpdatePanel_1').scrollTop = yPos;…

VIEW QUESTION
Back To Top
Search