text boxes

  • Thread starter Thread starter jerry
  • Start date Start date
J

jerry

I am using Visula Basic .Net to create a Web Form with
text boxes. I have not found a way to do the
following: set the focus on a text box, use the enter
key to move from one text box to another. Does anyone know
how to accomplish this with VB .NET code or HTML?
 
not sure in a webapp.

In normal vb...
trap keydown event for the enter key
e.keycode= (I think. I'm not in my IDE right now)

and use the .Focus method of the control to move to. If not I have also
notice a tabnext or nexttabcontrol method--something like that that causes
this tab like functionality to occur programatically.

sorry not specific. Hope it gives you a starting place and don't know if it
works in asp.net like in vb.net but think it might.

Shane
 
Hi Jerry,

Not very sophisticated, but it works, I never tried it with a Page method.
So you have to try that yourself or just paste it in your HTML part of the
ASPX
\\\
<INPUT tabindex="1" id="fieldid" type="text" size="27">
///
//This should be as last rows in your html aspx file
<script language="JavaScript">
fieldid.focus();
</script>
</HTML>
///

I hope this helps a little bit?

Cor
 
Back
Top