Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
roll no. ( textbox.)
name ( textbox.)
english ( textbox.)
maths ( textbox.)


Update(button) Cancel(button)

Insert(button) Modify(button) Delete(button) Exit(button)

Form of my Program above one.

in first textbox initallay there is 1 number and when we press enter we get cursor into next text box....


plz help me for this coding..


IT IS FOR DATABASE CODING.

What I have tried:

i had not try any because i dont understand this i have do this for 1st time..



So please help me..
Posted
Comments
Sergey Alexandrovich Kryukov 8-Feb-16 1:02am    
Why having a section "what I have tried" without telling us what have you tried.
We got a number "questions" with the same structure and attitude, and I wonder: is it the same person under different accounts? The common characteristics are: no effort, having not clue on what to do, something creating a lot of doubt if you should do this work at all...
Such questions are not answerable, it the answers cannot be useful to anyone. Just one advice: get to work.
—SA

1 solution

First of all. set all button property UseSubmitBehavior="false" because when you enter buttton click event will fired. after that call javascript method on onkeydown event and check its keycode . if keycode=13 then focus to next textbox.
for example please follow below links.

http://www.aspdotnet-suresh.com/2013/02/javascript-automatically-move-cursor-to.html[^]
Move to next textbox by pressing Enter Key[Return] in ASP.NET[^]
javascript - How to go to next textbox when enter is pressed? - Stack Overflow[^]


Regards,
AARIF SHAIKH
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900