View scrolls on post back

Discussion in 'ASP .Net' started by AAaron123, Aug 7, 2008.

  1. AAaron123

    AAaron123 Guest

    When the page is redrawn after a postback the original scrolled position is
    lost and the page is shown from the top.

    Is it possible to cause the page to retain the original scroll position?

    I'd like the bottom causing the postback to remain in the original position


    thanks
    AAaron123, Aug 7, 2008
    #1
    1. Advertising

  2. AAaron123

    Munna Guest

    Hi,

    Set your page's attribute to MaintainScrollPositionOnPostback="true"

    example

    <%@ Page Language="C#" AutoEventWireup="true"
    Inherits="TME.UI.Default" MasterPageFile="~/MasterPages/Site2.Master"
    Codebehind="Default.aspx.cs" MaintainScrollPositionOnPostback="true"
    %>


    Best of luck

    -------
    Munna

    www.munna.shatkotha.com/blog
    www.munna.shatkotha.com
    www.shatkotha.com
    Munna, Aug 7, 2008
    #2
    1. Advertising

  3. AAaron123

    AAaron123 Guest

    That was a lot easier then I expected.

    Thanks

    "Munna" <> wrote in message
    news:...
    > Hi,
    >
    > Set your page's attribute to MaintainScrollPositionOnPostback="true"
    >
    > example
    >
    > <%@ Page Language="C#" AutoEventWireup="true"
    > Inherits="TME.UI.Default" MasterPageFile="~/MasterPages/Site2.Master"
    > Codebehind="Default.aspx.cs" MaintainScrollPositionOnPostback="true"
    > %>
    >
    >
    > Best of luck
    >
    > -------
    > Munna
    >
    > www.munna.shatkotha.com/blog
    > www.munna.shatkotha.com
    > www.shatkotha.com
    AAaron123, Aug 7, 2008
    #3
    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. =?Utf-8?B?ZG90bmV0a3VtYXI=?=

    scrolls scrolls scrolls scrolls scrolls ...............

    =?Utf-8?B?ZG90bmV0a3VtYXI=?=, Aug 4, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    340
    =?Utf-8?B?ZG90bmV0a3VtYXI=?=
    Aug 4, 2005
  2. Noozer
    Replies:
    1
    Views:
    1,344
    Mark Parnell
    Jun 16, 2005
  3. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    768
    Masudur
    May 25, 2007
  4. luqman

    Page scrolls up on update ?

    luqman, Aug 13, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    319
    Masudur
    Aug 13, 2007
  5. barbara.morey

    Scrolls doesn't scroll in SWT

    barbara.morey, Sep 10, 2008, in forum: Java
    Replies:
    0
    Views:
    1,223
    barbara.morey
    Sep 10, 2008
Loading...

Share This Page