473,320 Members | 1,945 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,320 software developers and data experts.

Taborder between asp:textboxes

Hi,

I have a form which contains a number of textboxes, they are defined like
this :

<asp:TextBox id="txtEmail" MaxLength="128" runat="server"
class="DataTextBoxMedium" onkeydown="TrapKBD()" />

At the moment as the user enters information, and presses the tab key, they
are taken down the textboxes in the order they appear on the form, 1,2,3,4
etc.

I'd like to change this order (not based on any input) but just make sure
the tab key takes a different route, say 1,3,2,4 .....

Can I do that? and how ?

Jane
Nov 22 '05 #1
3 1290
Are you wanting to have the tab order change each time
the app loads or just have the tab order 1, 3, 2, 4. If
its the latter, just change the tab order or tab index of
each control in the properties window starting with
0....then continue with 2, 1, 3. Hope this helps!!


-----Original Message-----
Hi,

I have a form which contains a number of textboxes, they are defined likethis :

<asp:TextBox id="txtEmail" MaxLength="128" runat="server"
class="DataTextBoxMedium" onkeydown="TrapKBD()" />

At the moment as the user enters information, and presses the tab key, theyare taken down the textboxes in the order they appear on the form, 1,2,3,4etc.

I'd like to change this order (not based on any input) but just make surethe tab key takes a different route, say 1,3,2,4 .....

Can I do that? and how ?

Jane
.

Nov 22 '05 #2
It does a bi thanks....... but I dont have Visual Studio.... so can you tell
me the syntax it generates int the unerlying code ??

Jane..

"Ramon Guerrero" <ob************@hotmail.com> wrote in message
news:00****************************@phx.gbl...
Are you wanting to have the tab order change each time
the app loads or just have the tab order 1, 3, 2, 4. If
its the latter, just change the tab order or tab index of
each control in the properties window starting with
0....then continue with 2, 1, 3. Hope this helps!!


-----Original Message-----
Hi,

I have a form which contains a number of textboxes, they

are defined like
this :

<asp:TextBox id="txtEmail" MaxLength="128" runat="server"
class="DataTextBoxMedium" onkeydown="TrapKBD()" />

At the moment as the user enters information, and

presses the tab key, they
are taken down the textboxes in the order they appear on

the form, 1,2,3,4
etc.

I'd like to change this order (not based on any input)

but just make sure
the tab key takes a different route, say 1,3,2,4 .....

Can I do that? and how ?

Jane
.

Nov 22 '05 #3
What software package are you using? Are you just using
the .NET SDK? Well if you were to use visual studio and
then drop a text box onto your form and then change its
tab (or index) order, the underlying code that is
generated by the designer is this this.button1.TabIndex =
0....or what ever number you specify. This code snippet
is what it would look like if C# was the primary
language. If C++ is used then
this->button1->TabIndex = 0...ect. Let me know if this
helps!!

-----Original Message-----
It does a bi thanks....... but I dont have Visual Studio.... so can you tellme the syntax it generates int the unerlying code ??

Jane..

"Ramon Guerrero" <ob************@hotmail.com> wrote in messagenews:00****************************@phx.gbl...
Are you wanting to have the tab order change each time
the app loads or just have the tab order 1, 3, 2, 4. If its the latter, just change the tab order or tab index of each control in the properties window starting with
0....then continue with 2, 1, 3. Hope this helps!!


>-----Original Message-----
>Hi,
>
>I have a form which contains a number of textboxes, they
are defined like
>this :
>
><asp:TextBox id="txtEmail" MaxLength="128"
runat="server" >class="DataTextBoxMedium" onkeydown="TrapKBD()" />
>
>At the moment as the user enters information, and

presses the tab key, they
>are taken down the textboxes in the order they appear

on the form, 1,2,3,4
>etc.
>
>I'd like to change this order (not based on any input)

but just make sure
>the tab key takes a different route, say 1,3,2,4 .....
>
>Can I do that? and how ?
>
>Jane
>
>
>.
>

.

Nov 22 '05 #4

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

Similar topics

3
by: Jane Sharpe | last post by:
Hi, I have a form which contains a number of textboxes, they are defined like this : <asp:TextBox id="txtEmail" MaxLength="128" runat="server" class="DataTextBoxMedium" onkeydown="TrapKBD()"...
2
by: Walti | last post by:
Hi I stumbled over a strange problem in A2K concerning the Tab Order of 60 textboxes placed on a tab control: whenever I change the TabIndex of any one of these textboxes the other 59 change...
4
by: Child | last post by:
I want all of these to have a white background, but even if i set the property, some remain yellow. If i give them all the same class they take on the correct border, the correct fonts, etc, but...
3
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in...
3
by: A.M | last post by:
Hi, Even I specifically mentioned "white" as background color of all ASP:TextBoxes of my form, Some of them come up with yellow background. I guess it should be kind of ASP.NET behaviour, but...
5
by: SalamElias | last post by:
Hi, I have an aspx page with some asp:textboxes. In Page_load, I can populate the textboxes, I have a button on the page, clicking the button generates the btton_click event. My proble is I am not...
2
by: John Blair | last post by:
Hi, I have the following code which suggests state information will not be kept for the textbox - but when i submit the form with textbox1.value ="ABC" and reshow the page it shows "ABC"...
1
by: Fadi.MM | last post by:
Hi Guys, I'm trying to create a library of ASP.NET user controls. What i'm trying to do is to encapsulate all my controls in one library (DLL) and re-using them in other projects. Everything is...
1
Steve Kiss
by: Steve Kiss | last post by:
I have a site in which there are two asp textboxes as follows: <asp:TextBox runat="server" ID="UserName" /> <asp:TextBox id="Email" runat="server" ...
6
by: jobs | last post by:
This code was working, but then stopped working. I don't think I completely understand it. I pass it a formview name and it would loop through checking the value of textboxes. problem is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
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...
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...
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)...
0
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
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.