Scroll in Asp.Net Postback

Discussion in 'ASP .Net' started by Miguel Dias Moura, Mar 9, 2006.

  1. Hello,

    When my page is postback on a button click even my page scrolls up to
    the original position.

    How to make my page return to the last scroll possition or maybe to a
    specifique scroll position after postback?

    I am working on Asp.Net 2.0.

    Thank You,
    Miguel
     
    Miguel Dias Moura, Mar 9, 2006
    #1
    1. Advertising

  2. Add a page directive..

    <%@ Page MaintainScrollPositionOnPostback="true" ... %>

    "Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> wrote in message news:%...
    >
    > Hello,
    >
    > When my page is postback on a button click even my page scrolls up to the original position.
    >
    > How to make my page return to the last scroll possition or maybe to a specifique scroll position after postback?
    >
    > I am working on Asp.Net 2.0.
    >
    > Thank You,
    > Miguel
    >
     
    Adrian Parker, Mar 9, 2006
    #2
    1. Advertising

  3. In ASP.NET 2.0 this is easy.
    Simply use this line of code:

    Page.MaintainScrollPositionOnPostBack = True

    --
    I hope this helps,
    Steve C. Orr
    MCSD, MVP
    http://SteveOrr.net



    "Miguel Dias Moura" wrote:

    >
    > Hello,
    >
    > When my page is postback on a button click even my page scrolls up to
    > the original position.
    >
    > How to make my page return to the last scroll possition or maybe to a
    > specifique scroll position after postback?
    >
    > I am working on Asp.Net 2.0.
    >
    > Thank You,
    > Miguel
    >
    >
     
    =?Utf-8?B?U3RldmUgQy4gT3Jy?=, Mar 9, 2006
    #3
  4. Miguel Dias Moura

    Progman Guest

    this was already answered on this newsgroup a week ago

    "Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> wrote in message
    news:%...
    >
    > Hello,
    >
    > When my page is postback on a button click even my page scrolls up to the
    > original position.
    >
    > How to make my page return to the last scroll possition or maybe to a
    > specifique scroll position after postback?
    >
    > I am working on Asp.Net 2.0.
    >
    > Thank You,
    > Miguel
    >
     
    Progman, Mar 9, 2006
    #4
  5. excellent.

    "Progman" <> wrote in message news:jY_Pf.5370$...
    > this was already answered on this newsgroup a week ago
    >
    > "Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> wrote in message news:%...
    >>
    >> Hello,
    >>
    >> When my page is postback on a button click even my page scrolls up to the original position.
    >>
    >> How to make my page return to the last scroll possition or maybe to a specifique scroll position after postback?
    >>
    >> I am working on Asp.Net 2.0.
    >>
    >> Thank You,
    >> Miguel
    >>

    >
    >
     
    Adrian Parker, Mar 9, 2006
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ed
    Replies:
    8
    Views:
    6,042
    Ken Cox [Microsoft MVP]
    Nov 23, 2004
  2. nicholas
    Replies:
    0
    Views:
    443
    nicholas
    Dec 7, 2004
  3. Kevin
    Replies:
    1
    Views:
    9,539
    Roland
    Feb 5, 2005
  4. Sathiamoorthy

    Enable Scroll up and scroll down in CR-report

    Sathiamoorthy, Nov 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    905
    zobalee
    Nov 28, 2006
  5. UJ
    Replies:
    1
    Views:
    585
    John Timney \(MVP\)
    Nov 1, 2006
Loading...

Share This Page