<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('scrollDiv').scrollLeft; yPos = $get('scrollDiv').scrollTop; } function EndRequestHandler(sender, args) { $get('scrollDiv').scrollLeft = xPos; $get('scrollDiv').scrollTop = yPos; } How to refer a div to this Javascript.. This script place in MASTER PAGE AND I WANT THIS TO INVOKE IN WEB FOR HOW CAN I REFER A DIV TO THIS SCRIPT. Link of this source :<a href="http://weblogs.asp.net/andrewfrederick/maintain-scroll-position-after-asynchronous-postback">http://weblogs.asp.net/andrewfrederick/maintain-scroll-position-after-asynchronous-postback</a>[<a href="http://weblogs.asp.net/andrewfrederick/maintain-scroll-position-after-asynchronous-postback" target="_blank" title="New Window">^</a>]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)