Position page on load and keep state?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Position page on load and keep state?

  1. #1
    Saul Guest

    Position page on load and keep state?


    Hi

    My .NET web page consists of several sections, if I scroll down to a section,
    enter some data and hit update, when the page is reloaded it is positioned
    at the top of the page and not on the section I was working on. This is
    confusing for users. How would one do a page load, and postion where it
    was before (say at a specified anchor)- while at the same time maintining
    viewstate on the page (IsPostBack must remain true) - so we can not do a
    Redirect("www.MyPage.com#MyAnchor") - as this will start a fresh instance
    of the page and we loose our state?

    I hoping there is some code I can run in the page load which will jump the
    page to the required position/location.

    Any help apprecaited.
    Thanks
    Saul


  2. #2
    Russell Jones Guest

    Re: Position page on load and keep state?

    Answered in the web.asp.plus discussion group. Please don't cross-post.

    Thanks,
    Russell Jones
    Sr. Web Development Editor,
    DevX.com

    "Saul" <skaplan@ozemail.com.au> wrote in message
    news:3bb3cffd@news.devx.com...
    >
    > Hi
    >
    > My .NET web page consists of several sections, if I scroll down to a

    section,
    > enter some data and hit update, when the page is reloaded it is positioned
    > at the top of the page and not on the section I was working on. This is
    > confusing for users. How would one do a page load, and postion where it
    > was before (say at a specified anchor)- while at the same time maintining
    > viewstate on the page (IsPostBack must remain true) - so we can not do a
    > Redirect("www.MyPage.com#MyAnchor") - as this will start a fresh instance
    > of the page and we loose our state?
    >
    > I hoping there is some code I can run in the page load which will jump the
    > page to the required position/location.
    >
    > Any help apprecaited.
    > Thanks
    > Saul
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center