K
kpg
After an autopostback event the control that gets focus next
is not the one defined in the taborder, but the first control.
This makes sense becuase the page is reloaded, but of course this
is not the desired behaviour.
I have seen the use of a hidden field, which stores the name of the control
that should get focus next, being set in the autopostback event, then an
OnPageLoad javascript that sets the focus to it.
This works, but only for 'forward' tabs, and the next control has nothing
to do with the taborder but is set in code.
It seems like there should be a better solution to this problem.
Actually, it seems like the viewstate should handle this automatically.
Any ideas or solutions?
kpg
is not the one defined in the taborder, but the first control.
This makes sense becuase the page is reloaded, but of course this
is not the desired behaviour.
I have seen the use of a hidden field, which stores the name of the control
that should get focus next, being set in the autopostback event, then an
OnPageLoad javascript that sets the focus to it.
This works, but only for 'forward' tabs, and the next control has nothing
to do with the taborder but is set in code.
It seems like there should be a better solution to this problem.
Actually, it seems like the viewstate should handle this automatically.
Any ideas or solutions?
kpg