Jump to top of screen

Discussion in 'ASP .Net' started by Robert Sheppard, May 23, 2006.

  1. Is there any way to prevent the page from jumping to the top of the screen
    on a postback.

    I have a table that I create dynamically with some buttons. Each time I
    click on of the buttons I launch a popup window (which works fine) but my
    main page jumps to the top of the screen.

    This is very annoying especially if the table is long. User keeps having to
    scroll down and find his place each time he clicks anything.
     
    Robert Sheppard, May 23, 2006
    #1
    1. Advertising

  2. Robert Sheppard

    MSDN Guest

    might be lucky and use SmartNavigation


    "Robert Sheppard" <> wrote in message
    news:...
    > Is there any way to prevent the page from jumping to the top of the screen
    > on a postback.
    >
    > I have a table that I create dynamically with some buttons. Each time I
    > click on of the buttons I launch a popup window (which works fine) but my
    > main page jumps to the top of the screen.
    >
    > This is very annoying especially if the table is long. User keeps having
    > to
    > scroll down and find his place each time he clicks anything.
    >
    >
    >
     
    MSDN, May 23, 2006
    #2
    1. Advertising

  3. Do you need any information from the server to open the pop? Otherwise
    you could skip the postback and open the popup window using only client
    script, e.g. Javascript in a non-server tag:

    <input type="button" value="Eat me!" onclick="window.open(...);" />

    Robert Sheppard wrote:
    > Is there any way to prevent the page from jumping to the top of the screen
    > on a postback.
    >
    > I have a table that I create dynamically with some buttons. Each time I
    > click on of the buttons I launch a popup window (which works fine) but my
    > main page jumps to the top of the screen.
    >
    > This is very annoying especially if the table is long. User keeps having to
    > scroll down and find his place each time he clicks anything.
     
    =?ISO-8859-1?Q?G=F6ran_Andersson?=, May 23, 2006
    #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. Guenther Liebowitz

    Preventing jump to top of screen during postback

    Guenther Liebowitz, Aug 14, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    555
    Stephen Walch
    Aug 14, 2003
  2. dave

    Jump to top of screen?

    dave, May 5, 2004, in forum: HTML
    Replies:
    6
    Views:
    14,575
  3. Frederic HOUDE
    Replies:
    4
    Views:
    599
    Frederic HOUDE
    Aug 31, 2004
  4. Dave White

    Jump to the top of the screen

    Dave White, Mar 31, 2007, in forum: HTML
    Replies:
    4
    Views:
    431
    Neredbojias
    Apr 1, 2007
  5. Eadwine Rose
    Replies:
    2
    Views:
    216
    Eadwine Rose
    Oct 15, 2006
Loading...

Share This Page