auto tabbing

J

Joe90

Hi,
I'm looking for some help on auto tabbing between edit boxes, on a asp.net
page writing with C#.

The edit boxes are auto generated at run time and could from 1 to many boxes
so the code needs to be quite dynamic to cope with this.

Any help is appreciated.
 
J

Jeff Johnson

I'm looking for some help on auto tabbing between edit boxes, on a asp.net
page writing with C#.

The edit boxes are auto generated at run time and could from 1 to many
boxes so the code needs to be quite dynamic to cope with this.

Unless there's a property I'm unaware of (and I'm not a Web guy), you're
going to have to do this through Javascript, so you'd have to dynamically
attach a function to your text box's onchange event. You'll probably want
that function to be generic and accept sender, max length, and
next-control-in-tab-order parameters so that you can use one function for
all your text boxes.

I'd recommend you ask this in an ASP.NET group. Someone there's probably
done this before.
 
J

Joe90

Will do
Thanks

Jeff Johnson said:
Unless there's a property I'm unaware of (and I'm not a Web guy), you're
going to have to do this through Javascript, so you'd have to dynamically
attach a function to your text box's onchange event. You'll probably want
that function to be generic and accept sender, max length, and
next-control-in-tab-order parameters so that you can use one function for
all your text boxes.

I'd recommend you ask this in an ASP.NET group. Someone there's probably
done this before.
 
G

G.S.

Hi,
I'm looking for some help on auto tabbing between edit boxes, on a asp.net
page writing with C#.

The edit boxes are auto generated at run time and could from 1 to many boxes
so the code needs to be quite dynamic to cope with this.

Any help is appreciated.

Server-side text box controls in ASP.NET expose that as a property.

What I've done in classic ASP - I've used a page-global counter that I
increment every time I use it. I would then make all my controls' tab-
stop property use this counter. That actually let me "pass" that
counter to user controls (include files in classic ASP), this way
keeping the input controls contributed by the include in sync with the
tab order of the host page.
 

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

Top