Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1234
  • Last Modified:

maintain scroll position using AJAX accordion control

I'm using an accordion control on my page and I noticed that when I click to open a pane, the scroll position on the page is not maintained.  It jumps to the top of the page.

I set the page property: Still the scroll position is not maintained when I click the link to open the accordion pane?
MaintainScrollPositionOnPostback="true"

Still the scroll position is not maintained when I click the link to open the accordion pane?

How can I maintain the scroll position using the accordion control?

http://www.compasslearning.com/News/Conferences.aspx#

Thanks in advance for any help.
0
-Dman100-
Asked:
-Dman100-
1 Solution
 
thirdCommented:
on your details links, add an onclick attribute and set it to return false. the generated code should become

<a href="#" onclick="return false;">[Details]</a>
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now