var xPos, yPos;
** .
function BeginRequestHandler (, args) {
** . , ,
if ($ get ('<% = lstAuctions.ClientID% > ')!= null) {
** ASP/ASP.NET, <%% > .
xPos = $get ('<% = lstAuctions.ClientID% > '). scrollLeft;
** .
yPos = $get ('<% = lstAuctions.ClientID% > '). scrollTop;
** .
function EndRequestHandler (, args) {
** . , ,
if ($ get ('<% = lstAuctions.ClientID% > ')!= null) {
** ASP/ASP.NET, <%% > .
$get ('<% = lstAuctions.ClientID% > '). scrollLeft = xPos;
** xPos.
$get ('<% = lstAuctions.ClientID% > '). scrollTop = yPos;
** xPos.
var prm = Sys.WebForms.PageRequestManager.getInstance();
** PageRequestManager.
prm.add_beginRequest (BeginRequestHandler);
** Adds the event handler defined above to the beginning of the request for the current page.
prm.add_endRequest (EndRequestHandler);
** Adds the event handler defined above to the end of theRequest of the current page.
source
share