How to control SmartNavigation based on postback context?

P

Peter Rilling

I have a page that, on different postbacks, have different contexts. For
example, a listbox would postback so that it can update data in the form
while the Save button would save the contents. Because there are different
contexts, I want SmartNavigation to be dependent on the context. If a
person selects a list item, I want SmartNavigation to be invoked, if they
click Save, and errors occur, I do not want it invoked so that it will snap
to the top of the page to display the errors.

What I tried to do was to turn SmartNavigation off in the button event, it
apparently that has no effect. It appears that the button events happen
after the JavaScript has been written to the output stream (or something
like that). Any thoughts about how I can control SmartNavigation based on
context of the postback?
 
B

bruce barker

the only way to turn smart navigation off once it is on, is to do redirect.
this is because once smart nav is on, client javascript handles the postback
by posting to a hidden frame, then copying the dom info front the hidden
frame to the main frame. you could write client script to undo smart nav.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top