I'm trying to set the focus to a textbox control on a page. All controls are web (server-side)controls. I have a button that when pressed, the onclick event takes the values from 2 textboxes, calls a concatenation function which combines the 2 values into one string and places it in a listbox. This works just fine but after the value is placed in the listbox, I need the focus to go to the first textbox again. This all MUST be done before the page postback.
I tried 'RegisterClientScriptBlock(yada,yada,yada)' where it would use javascript to set the focus on the control but javascript errors and says null or not an object which means it can't find it. For some reason web controls don't seem to visible to it.
Any ideas?