ALWilliams
Programmer
Firstly I am new to ASP so apologies if i have missed the obvious here!!!
I have a page with two text boxes on it. The idea is for upon initial load the focus is on box1. I am after scanning a barcode into this box which I want it to navigate away upon finding the CRLF from the barcode reader. It should then run some code which will populate some labels with info and then finally set the focus to the second textbox ready for a job barcode scan.
Upon this second scan, this will then execute some other code that will read a db and populate more labels ready for the user to select the status of this job and press a button which will update the db of such.
I have it currently so that the page loads and correctly focus' to textbox1. However, upon losing focus from this box (currently by hitting TAB) it kicks the postback routine and upon returning sets the focus to the URL of my page and not the second textbox even though I have it set as the next item in the tabindex list.
I've tried an if statement which kind of says if not postback set focus to box 1, else box 2 yet it still ignores the second box's setfocus.
Any ideas appreciated!
I have a page with two text boxes on it. The idea is for upon initial load the focus is on box1. I am after scanning a barcode into this box which I want it to navigate away upon finding the CRLF from the barcode reader. It should then run some code which will populate some labels with info and then finally set the focus to the second textbox ready for a job barcode scan.
Upon this second scan, this will then execute some other code that will read a db and populate more labels ready for the user to select the status of this job and press a button which will update the db of such.
I have it currently so that the page loads and correctly focus' to textbox1. However, upon losing focus from this box (currently by hitting TAB) it kicks the postback routine and upon returning sets the focus to the URL of my page and not the second textbox even though I have it set as the next item in the tabindex list.
I've tried an if statement which kind of says if not postback set focus to box 1, else box 2 yet it still ignores the second box's setfocus.
Any ideas appreciated!