I have a page with an iframe on it in which I load another page.
On this iframe page I have some textboxes above eachother.
When the first textbox is filled with a code the textchanged event is called
and the code is checked with the database.
After the code has been changed to the right one (if needed) I want the
focus to go to the next textbox.
So at the end of the event I do: Page.SetFocus(txtbox2)
But after the postback refresh, the focus is gone.
I have also put the control to be focussed in a session variable and then in the page_load event I set the focus to the control in the session variable, but still no focus on the textbox.
How can I put it on the 2nd textbox?
all is done in the Iframe page codebehind.
I need this focus because the two textboxes are filled via bar code reader and after the scan an "enter press" is done automatically and to be able to allow two scans after each other this focus change is needed.
View Complete Post