Hi!
You can do this only by client-side scripting.
Try to put following attribute in the first text box:
onkeypress="if (this.value.length==10) {TextBox2.focus();}"
and following attribute in the second text box:
id="TextBox2"
"10" above is max length of value.
>All,
>
>I have created an ASCX to enter a SSN consisting of 3 textboxes with dashes between them. I am looking for a way to automatically tab between the textboxes when the textbox maxlength is reached.
>
>Thanks
>
>Rex
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.