473,503 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1294
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
290
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
2212
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
1055
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
1879
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
3608
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
1118
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
1599
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
1426
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
1694
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
6071
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
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.