ASP panel control
-
i have a panel which has auto ScrollBar i have two buttons having text "MoveUp" and MoveDown Respectivelly what i want to achieve is on clicking MoveUp the panel is scrolled up by one (some) unit and on clicking the movedown button the pannel should scroll one unit down. waiting for kind reply
-
i have a panel which has auto ScrollBar i have two buttons having text "MoveUp" and MoveDown Respectivelly what i want to achieve is on clicking MoveUp the panel is scrolled up by one (some) unit and on clicking the movedown button the pannel should scroll one unit down. waiting for kind reply
Call this function in
OnClientClick
of MoveDown button.function ScrollDownPanel() { var pnlScroll=document.getElementById('pnlScroll'); pnlScroll.scrollTop=parseInt(pnlScroll.scrollTop)+50; return false; }
For moving up add unit in the scrollTop.Arun J
-
Call this function in
OnClientClick
of MoveDown button.function ScrollDownPanel() { var pnlScroll=document.getElementById('pnlScroll'); pnlScroll.scrollTop=parseInt(pnlScroll.scrollTop)+50; return false; }
For moving up add unit in the scrollTop.Arun J
I DID IT but there is a problem if i place an alert before this it works otherwise it donot.......... i have checked the value of scroll top changes even if i donot place alert but visualy the scroll position do not v=change