I have a number of controls inside an update panel.
When I tab off the first which has an autopostback=true, I run some code that goes off an hits the db, then sets the value of a literal control based on the results.
The problem is when I tab off, initially the cursor goes to the next textbox, however once the db hit has finished and the value of the literal gets set, the 2nd textbox then loses focus and the cursor is no longer where it should be.
I have tried adding txtInvCP.Focus() which is the 2nd textbox, inside the function that runs on the autopostback but still no joy, hopefully there is a way around this?
Thanks in advance.