Position in Page after a "Submit"

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Position in Page after a "Submit"

    I'm just in the process of developing a web server component and have come
    up against one final problem. It's like a data grid in that it displays
    rows of data - which can be edited / updated in-line. The edit / update
    buttons are child ASP:button controls. I have all the functionality working
    as I intended, however whilst the data / screen layout is updated
    accordingly when you click a page, the page itself is redisplayed at the top
    of the document (so you lose your position in the html page and have to
    scroll back down). Is there a way to programmatically update the position
    within the page, or do you have to define Href anchor points within your
    component and modify the form post location accordingly in the client side
    javascript/vbscript that is output by the ASP:button (which i guess would
    require me to override / modify the ASP:button as well). Any hints / tips
    would be greatly appreciated.

    Regards,

    - Paul.


    Paul Guest

  2. Similar Questions and Discussions

    1. "Page" and "Rect" props of the Field prop in Javascript API
      Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property...
    2. Acrobat Form Submit error: changes VALUE="true" to "0"
      I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"...
    3. #23462 [NoF->Bgs]: Position "php_admin_value open_basedir" in httpd.conf
      ID: 23462 Updated by: sniper@php.net Reported By: admin at xpower dot nwt -Status: No Feedback +Status: ...
    4. #25366 [NEW]: form buttons of type "image" dont send "submit" $_POST variable in IE
      From: jordanolsommer at imap dot cc Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Variables related Bug...
    5. How to position a "footer" layer at the bottom of each page
      I'd like to have a small layer at the bottom of each page with our copyright and contact info, like a footer in Microsoft Word. I can't figure out...
  3. #2

    Default Re: Position in Page after a "Submit"

    In ASP.NET 1.x, if you enable SmartNavigation on the page, it should be able
    to retain the scroll position after postback.

    Here's more info:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassSmartNavigationTopic.asp[/url]

    If you're using ASP.NET 2.0, there is a (usually) better alternative:
    Page.MaintainScrollPositionOnPostBack = True

    Here's more info:
    [url]http://msdn2.microsoft.com/en-us/library/system.web.ui.page.maintainscrollpositiononpostbac k.aspx[/url]

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


    "Paul" <nonone@noone.com> wrote in message
    news:%23HDa8CSwGHA.1272@TK2MSFTNGP05.phx.gbl...
    > I'm just in the process of developing a web server component and have come
    > up against one final problem. It's like a data grid in that it displays
    > rows of data - which can be edited / updated in-line. The edit / update
    > buttons are child ASP:button controls. I have all the functionality
    > working as I intended, however whilst the data / screen layout is updated
    > accordingly when you click a page, the page itself is redisplayed at the
    > top of the document (so you lose your position in the html page and have
    > to scroll back down). Is there a way to programmatically update the
    > position within the page, or do you have to define Href anchor points
    > within your component and modify the form post location accordingly in the
    > client side javascript/vbscript that is output by the ASP:button (which i
    > guess would require me to override / modify the ASP:button as well). Any
    > hints / tips would be greatly appreciated.
    >
    > Regards,
    >
    > - Paul.
    >

    Steve C. Orr [MVP, MCSD] Guest

  4. #3

    Default Re: Position in Page after a "Submit"

    That's great, thanks for the help. Thanks also for not pointing out that
    I'd forgotten to add which version of DotNet I was using (it was 2.0).

    "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
    news:ORUSFr0wGHA.4160@TK2MSFTNGP06.phx.gbl...
    > In ASP.NET 1.x, if you enable SmartNavigation on the page, it should be
    > able
    > to retain the scroll position after postback.
    >
    > Here's more info:
    > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassSmartNavigationTopic.asp[/url]
    >
    > If you're using ASP.NET 2.0, there is a (usually) better alternative:
    > Page.MaintainScrollPositionOnPostBack = True
    >
    > Here's more info:
    > [url]http://msdn2.microsoft.com/en-us/library/system.web.ui.page.maintainscrollpositiononpostbac k.aspx[/url]
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > [url]http://SteveOrr.net[/url]
    >
    >
    > "Paul" <nonone@noone.com> wrote in message
    > news:%23HDa8CSwGHA.1272@TK2MSFTNGP05.phx.gbl...
    >> I'm just in the process of developing a web server component and have
    >> come up against one final problem. It's like a data grid in that it
    >> displays rows of data - which can be edited / updated in-line. The edit
    >> / update buttons are child ASP:button controls. I have all the
    >> functionality working as I intended, however whilst the data / screen
    >> layout is updated accordingly when you click a page, the page itself is
    >> redisplayed at the top of the document (so you lose your position in the
    >> html page and have to scroll back down). Is there a way to
    >> programmatically update the position within the page, or do you have to
    >> define Href anchor points within your component and modify the form post
    >> location accordingly in the client side javascript/vbscript that is
    >> output by the ASP:button (which i guess would require me to override /
    >> modify the ASP:button as well). Any hints / tips would be greatly
    >> appreciated.
    >>
    >> Regards,
    >>
    >> - Paul.
    >>
    >
    >

    Paul Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139