Results 1 to 4 of 4

Thread: page reloading...always scrolled back to the top

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    KC
    Posts
    8

    Question page reloading...always scrolled back to the top

    On a survey I am creating, when an event takes place and new html is sent back to the web browser, I find that the browser always moves back to the top of the web page. This would be a minor annoyance for someone who has to scroll back down to the location they were at before the page refreshes.

    Is there something I need in my code behind or a property to set? Code behind is VB.NET

    Thanks,
    Geno

  2. #2
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    I have the same problem and while reading your post I think I might have solved the problem.

    Try coding some jscript in your page that moves the page based on the value of a hidden input. Then in your "If IsPostBack Then" set the hidden value.

    Maybe???
    Please rate my post.

  3. #3
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    There is a solution that works with IE 5.0 and up.

    SmartNavigation

  4. #4
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272

    Re: page reloading...always scrolled back to the top

    Originally posted by genode
    On a survey I am creating, when an event takes place and new html is sent back to the web browser, I find that the browser always moves back to the top of the web page. This would be a minor annoyance for someone who has to scroll back down to the location they were at before the page refreshes.

    Is there something I need in my code behind or a property to set? Code behind is VB.NET

    Thanks,
    Geno

    Mark the locations using Anchor elements..

    http://www.utoronto.ca/webdocs/HTMLd...ML/a_name.html

Posting Permissions

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



Click Here to Expand Forum to Full Width