maintaining scroll state

Results 1 to 2 of 2

Thread: maintaining scroll state

  1. #1
    Join Date
    Dec 1969

    Default maintaining scroll state

    Hello there,<BR><BR>I&#039;d like to maintain the scroll state of the web browser when I&#039;m posting back to the page, since the page is large and the user will get frustrated if he has to rescroll down everytime he hits a button. I&#039;ve tried using the page directive "smart navigation", but it didn&#039;t appear to affect anything at all. Is there another way to do this, such as saving the scroll state and settings it manually on each page_load?<BR><BR>thanks<BR>-chuck

  2. #2
    Join Date
    Dec 1969

    Default how did you set smartnavigation?

    Did you try<BR>smart navigation = true <BR>or<BR>SmartNavigation="True"<BR><BR>I think you also need to change your web.config file.<BR><BR>The alternative is to use <BR><BR><BR>Where "SOMENAME" is the name of an anchor tag on your page<BR><BR>&#060;a name="SOMENAME" &#062;Scroll to here&#060;/a&#062;<BR><BR>But this is hard to implement with postbacks... You would have to append this to the &#060;body onload=&#039;document.location.href="#SOMETHING"&# 039;&#062; or something like that.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts