473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

AutoPostBack on TextBox loses Focus

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

Nov 18 '05 #1
3 4164
when you click the tab button where does the cursor go?
set the tab index on the input boxes to 0 ( firstname) 1 (lastname)

"- Steve -" <se****@foundation.sdsu.edu> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

Nov 18 '05 #2
On Tue, 29 Jun 2004 11:48:02 -0700, "- Steve -"
<se****@foundation.sdsu.edu> wrote:
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
Nov 18 '05 #3
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
"Gareth Jones" <ga****@REMOVEMEuberdog.net> wrote in message
news:78********************************@4ax.com...
On Tue, 29 Jun 2004 11:48:02 -0700, "- Steve -"
<se****@foundation.sdsu.edu> wrote:
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonas L | last post by:
Hi, I need to create a textbox which acts as a normal textbox but with the following extra requirements: 1) In-focus color, when the textbox gets focus the backcolor property of the textbox...
3
by: Gidi | last post by:
Hi, Is it possible to know when TextBox loses focus to which object it lost it? what i mean is when the LostFocus Event occur is it possible to know which object got the focus instead? thanks,
6
by: Sunil | last post by:
Dear All I am a bit confused about AutoPost Back. My concept about AutoPostBack is that If AutoPostBack i "TRUE" for a Web Form the Web Form Goes back to the server and displays a fresh copy of...
3
by: Pieter | last post by:
Hi, I'm making an Outlook (2003) Add-In (VB.NET 2005), with a simple button and a textbox (msoControlEdit). When the user types something in the textbox, and clicks on the button, the text in...
2
by: Tom Edelbrok | last post by:
Question: Why does a button event (ie: Button1_Click) get executed on the first click for a textbox control which has 'autopostback=false', but doesn't get executed until a second click when...
3
by: Brad | last post by:
The first text on my form is a numeric field. I have a javascript that runs on this field for onkeyup (validate the key strokes and modifies fields on the screen) but when I do this and have the...
1
by: danyeungw | last post by:
I get the following from the link http://support.microsoft.com/kb/314206. I need to have both work - the page stays where it is and set focus to next control. Does anyone have solution? I have...
4
by: =?Utf-8?B?UmVuYXVkIExhbmdpcw==?= | last post by:
Hello, I have a strange yet very simple problem with the asp.net Textbox web control. On an empty asp.net page, add a single asp:TextBox control with Autopostback=false with nothing else on...
3
by: S Moran | last post by:
private void button1_Click(object sender, EventArgs e) { textBox1.SelectionStart = 0; textBox1.SelectionLength = textBox1.Text.Length; } yet when the button is clicked and there is text in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.