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. Keeping the position on the page

Keeping the position on the page

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 5 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.
  • D Offline
    D Offline
    dptalt
    wrote on last edited by
    #1

    When a user scrolls to the bottom of the page and clicks a button a similar page is displayed. When this second pages displays I would like it to automatically scroll down to the bottom as was the first page. Can this be done?

    C J T H 4 Replies Last reply
    0
    • D dptalt

      When a user scrolls to the bottom of the page and clicks a button a similar page is displayed. When this second pages displays I would like it to automatically scroll down to the bottom as was the first page. Can this be done?

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      You can achive this with anchors. -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      D 1 Reply Last reply
      0
      • D dptalt

        When a user scrolls to the bottom of the page and clicks a button a similar page is displayed. When this second pages displays I would like it to automatically scroll down to the bottom as was the first page. Can this be done?

        J Offline
        J Offline
        Joshua Lunsford
        wrote on last edited by
        #3

        if using IE try SmartNavigation = true;

        1 Reply Last reply
        0
        • D dptalt

          When a user scrolls to the bottom of the page and clicks a button a similar page is displayed. When this second pages displays I would like it to automatically scroll down to the bottom as was the first page. Can this be done?

          T Offline
          T Offline
          Tirthadip
          wrote on last edited by
          #4

          hi dptalt, You can write "SmartNavigation=True" in @Page directive of a page if using IE. you can also try for "MaintainScrollPositionOnPostBack=true". Best of luck. Tirtha Tirthadip

          1 Reply Last reply
          0
          • D dptalt

            When a user scrolls to the bottom of the page and clicks a button a similar page is displayed. When this second pages displays I would like it to automatically scroll down to the bottom as was the first page. Can this be done?

            H Offline
            H Offline
            HimaBindu Vejella
            wrote on last edited by
            #5

            Use SmartNavigation in ASp.net But it will work only in IE "Aim to go where U have never been B4 and Strive to achieve it" http://groups.yahoo.com/subscribe/dotnetforfreshers http://himabinduvejella.blogspot.com

            1 Reply Last reply
            0
            • C CWIZO

              You can achive this with anchors. -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

              D Offline
              D Offline
              dptalt
              wrote on last edited by
              #6

              I setup anchor tags to link to the other pages and link to those pages using the following code: response.redirect("bottletype.aspx#target") It works good for all but one of the pages. On that page it does not display the entire string in the browser. Instead of http://localhost:1340/CollingwoodWater/bottletype.aspx#target it shows http://localhost:1340/CollingwoodWater/bottletype.aspx So it does not anchor. Why doesn't display "#target" as part of the address?

              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