AutoPostBack on TextBox loses Focus

S

- Steve -

I have two textboxe's (FirstName & LastName). I have set autopostback on
both of those. The problem is if you enter the first name and then tab, it
doesn't go to the next textbox. So then you have to click with the mouse on
the LastName text box. How can I keep the tabs going where they should?

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708
 
M

Mike

when you click the tab button where does the cursor go?
set the tab index on the input boxes to 0 ( firstname) 1 (lastname)
 
G

Gareth Jones

I have two textboxe's (FirstName & LastName). I have set autopostback on
both of those. The problem is if you enter the first name and then tab, it
doesn't go to the next textbox. So then you have to click with the mouse on
the LastName text box. How can I keep the tabs going where they should?

Do you need autopostback on the FirstName field? Turning it off would
solve your problem...alternatively you'll have to write a handler for
the event, and put the code in there to set the focus to LastName.

Gareth
 
S

- Steve -

Well what I'm doing is creating a username based on the FirstName and
LastName. So I need to know when either of those fields changes so I can
update the UserName textbox.

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top