Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Holding your scroll position after postback without SmartNavigation

Holding your scroll position after postback without SmartNavigation

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomtutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Richard Parsons
    wrote on last edited by
    #1

    Hey guys and girls. It's been awhile since I have done any asp.net programming and today while trying to remember how to keep my position on the page after a postback I ran across some articles about SmartNavigation that made me reconsider using it. I'm sure several here know what I'm referring to so my question is how do you get around it so that you can keep your scroll position on the page in at least IE and Firefox? I saw this article today Hold Your (Scroll) Position[^]. Is anyone using this technique? Thanks for the info, Richard

    M 1 Reply Last reply
    0
    • R Richard Parsons

      Hey guys and girls. It's been awhile since I have done any asp.net programming and today while trying to remember how to keep my position on the page after a postback I ran across some articles about SmartNavigation that made me reconsider using it. I'm sure several here know what I'm referring to so my question is how do you get around it so that you can keep your scroll position on the page in at least IE and Firefox? I saw this article today Hold Your (Scroll) Position[^]. Is anyone using this technique? Thanks for the info, Richard

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi there. In 2.0 you can use the MaintainScrollPositionOnPostBack attribute of the @Page declaration:

      <%@ Page Language="C#" MaintainScrollPositionOnPostBack="true" %>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups