Results 1 to 5 of 5

Thread: Page to scroll to the top after a postback [Resolved]

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Page to scroll to the top after a postback [Resolved]

    I have a page with a large form on it. The user fills in all the textboxes, whatever, clicks on Save, and the page does a postback, saves the info.

    After the postback, the page will display, but scrolls down to the bottom where the save button was. I don't want this behavior. I'd like the page to go straight to the top after the postback.

    How can I do this?

    If I haven't been clear, ask me, I'll explain again.
    Last edited by mendhak; May 18th, 2005 at 12:39 AM.

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: Page to scroll to the top after a postback

    Set the smartNavigation property of the page to false. You must have set it to true which "remembers" the scroll position.

    I never realized you could do that. Thanks, Frog.

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Page to scroll to the top after a postback

    You're right. The person who made our base page had set smartnavigation to true, so I exposed a property in it, and disabled smartnavigation just for my page.

    Thanks for the idea.

  4. #4
    Lively Member zen_master's Avatar
    Join Date
    Apr 2005
    Location
    Buffalo, NY
    Posts
    114

    Re: Page to scroll to the top after a postback [Resolved]

    how exactly u set this up?

    set up the web config thingie?

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Page to scroll to the top after a postback [Resolved]

    Set what up? Scrolling or non scrolling?

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