auto tabbing

  • Thread starter Thread starter Joe90
  • Start date Start date
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.
 
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.
 
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.
 
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.
 
Back
Top