Postback issue?

Discussion in 'ASP .Net' started by Mervin Williams, May 6, 2004.

  1. Postbacks cause a webform to re-display the page at the top. Well, I have a
    fairly long form and would like the page display to be re-positioned where
    the user clicked the button that caused the postback to occur.

    Is there a way to do this?

    Mervin Williams
    Mervin Williams, May 6, 2004
    #1
    1. Advertising

  2. That is the purpose of SmartNavigation. You can look into this. Be sure to
    test your site thoroughly because the SmartNavigation architecture can cause
    some problems with a site.

    "Mervin Williams" <> wrote in message
    news:...
    > Postbacks cause a webform to re-display the page at the top. Well, I have

    a
    > fairly long form and would like the page display to be re-positioned where
    > the user clicked the button that caused the postback to occur.
    >
    > Is there a way to do this?
    >
    > Mervin Williams
    >
    >
    >
    Peter Rilling, May 6, 2004
    #2
    1. Advertising

  3. Thanks much!

    By the way, is there an article that spells out some of the problems
    encountered when using SmartNavigation?

    Mervin Williams

    "Peter Rilling" <> wrote in message
    news:...
    > That is the purpose of SmartNavigation. You can look into this. Be sure

    to
    > test your site thoroughly because the SmartNavigation architecture can

    cause
    > some problems with a site.
    >
    > "Mervin Williams" <> wrote in message
    > news:...
    > > Postbacks cause a webform to re-display the page at the top. Well, I

    have
    > a
    > > fairly long form and would like the page display to be re-positioned

    where
    > > the user clicked the button that caused the postback to occur.
    > >
    > > Is there a way to do this?
    > >
    > > Mervin Williams
    > >
    > >
    > >

    >
    >
    Mervin Williams, May 7, 2004
    #3
  4. There might be, but what I know of SmartNavigation is though my own
    questions on newsgroups. I have not seen any article that documents the
    architecture's behavior.

    It may just come through trial and error as you determine what does and does
    not work.

    Basically, here is how SmartNavigation works. When you turn SmartNavigation
    on, the page is rendered with a hidden iframe (visible if you view the
    page's source). This iframe is the container for all submit requests. If
    you click the submit button, the form data is copied to the iframe and
    submitted there. The iframe then returns from the server and some
    JavaScript will copy the DOM from the iframe to the main page. That is how
    the browser can stay at the same place, it is never reloaded.

    If you dynamically create JavaScript that is returned from the server based
    on posted conditions, then you may run into problems because the JavaScript
    will run in the iframe, not the main page. Also, you cannot turn
    SmartNavigation off once it is on because the main page is never refreshed.

    "Mervin Williams" <> wrote in message
    news:...
    > Thanks much!
    >
    > By the way, is there an article that spells out some of the problems
    > encountered when using SmartNavigation?
    >
    > Mervin Williams
    >
    > "Peter Rilling" <> wrote in message
    > news:...
    > > That is the purpose of SmartNavigation. You can look into this. Be

    sure
    > to
    > > test your site thoroughly because the SmartNavigation architecture can

    > cause
    > > some problems with a site.
    > >
    > > "Mervin Williams" <> wrote in message
    > > news:...
    > > > Postbacks cause a webform to re-display the page at the top. Well, I

    > have
    > > a
    > > > fairly long form and would like the page display to be re-positioned

    > where
    > > > the user clicked the button that caused the postback to occur.
    > > >
    > > > Is there a way to do this?
    > > >
    > > > Mervin Williams
    > > >
    > > >
    > > >

    > >
    > >

    >
    >
    Peter Rilling, May 7, 2004
    #4
  5. Mervin Williams

    mwhipps Guest

    I too have had problems with SmartNavigation, I personally would use set
    focus to the control you want on postback.

    "Peter Rilling" <> wrote in message
    news:...
    > There might be, but what I know of SmartNavigation is though my own
    > questions on newsgroups. I have not seen any article that documents the
    > architecture's behavior.
    >
    > It may just come through trial and error as you determine what does and

    does
    > not work.
    >
    > Basically, here is how SmartNavigation works. When you turn

    SmartNavigation
    > on, the page is rendered with a hidden iframe (visible if you view the
    > page's source). This iframe is the container for all submit requests. If
    > you click the submit button, the form data is copied to the iframe and
    > submitted there. The iframe then returns from the server and some
    > JavaScript will copy the DOM from the iframe to the main page. That is

    how
    > the browser can stay at the same place, it is never reloaded.
    >
    > If you dynamically create JavaScript that is returned from the server

    based
    > on posted conditions, then you may run into problems because the

    JavaScript
    > will run in the iframe, not the main page. Also, you cannot turn
    > SmartNavigation off once it is on because the main page is never

    refreshed.
    >
    > "Mervin Williams" <> wrote in message
    > news:...
    > > Thanks much!
    > >
    > > By the way, is there an article that spells out some of the problems
    > > encountered when using SmartNavigation?
    > >
    > > Mervin Williams
    > >
    > > "Peter Rilling" <> wrote in message
    > > news:...
    > > > That is the purpose of SmartNavigation. You can look into this. Be

    > sure
    > > to
    > > > test your site thoroughly because the SmartNavigation architecture can

    > > cause
    > > > some problems with a site.
    > > >
    > > > "Mervin Williams" <> wrote in message
    > > > news:...
    > > > > Postbacks cause a webform to re-display the page at the top. Well,

    I
    > > have
    > > > a
    > > > > fairly long form and would like the page display to be re-positioned

    > > where
    > > > > the user clicked the button that caused the postback to occur.
    > > > >
    > > > > Is there a way to do this?
    > > > >
    > > > > Mervin Williams
    > > > >
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >
    mwhipps, May 9, 2004
    #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. Psych971
    Replies:
    5
    Views:
    4,607
    bruce barker
    Dec 17, 2004
  2. =?Utf-8?B?Q2hhZA==?=

    Postback not being set to True on first postback

    =?Utf-8?B?Q2hhZA==?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    494
    =?Utf-8?B?Q2hhZA==?=
    Apr 4, 2005
  3. gce
    Replies:
    2
    Views:
    1,707
  4. Jacky Chau
    Replies:
    2
    Views:
    2,043
    Ninjamyst
    Jun 8, 2005
  5. Fabio Mastria
    Replies:
    5
    Views:
    4,344
    TechMCAD13
    Jan 30, 2008
Loading...

Share This Page