By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

Postback issue?

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <mw*******@innovasolutions.net> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #2

P: n/a
Thanks much!

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

Mervin Williams

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
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" <mw*******@innovasolutions.net> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
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


Nov 18 '05 #3

P: n/a
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" <mw*******@innovasolutions.net> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
Thanks much!

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

Mervin Williams

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
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" <mw*******@innovasolutions.net> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
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



Nov 18 '05 #4

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

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
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" <mw*******@innovasolutions.net> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
Thanks much!

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

Mervin Williams

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
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" <mw*******@innovasolutions.net> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
> 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
>
>
>



Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.