473,383 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

enter key in textbox

Hai,

I am new to asp.net, i have 5 to 10 text box in a form, after
entering values in the textbox, if i press Pressing ENTER on a Form
Page Submits the Form. How to pass the cursor to next textbox by
pressing enter key.
Thanks

Regards
Raj.

Jul 7 '06 #1
4 1826
You'll need to do some JavaScript - a quick google search turned this up, it
might help.

http://javascript.internet.com/forms...key-focus.html

--
-Demetri
"raju" wrote:
Hai,

I am new to asp.net, i have 5 to 10 text box in a form, after
entering values in the textbox, if i press Pressing ENTER on a Form
Page Submits the Form. How to pass the cursor to next textbox by
pressing enter key.
Thanks

Regards
Raj.

Jul 7 '06 #2
dgk
On 7 Jul 2006 06:34:57 -0700, "raju" <po*******@gmail.comwrote:
>Hai,

I am new to asp.net, i have 5 to 10 text box in a form, after
entering values in the textbox, if i press Pressing ENTER on a Form
Page Submits the Form. How to pass the cursor to next textbox by
pressing enter key.
Thanks

Regards
Raj.
You realize that you're supposed to use tab to move between controls?
Jul 7 '06 #3

Demetri wrote:
You'll need to do some JavaScript - a quick google search turned this up, it
might help.

http://javascript.internet.com/forms...key-focus.html

--
-Demetri
"raju" wrote:
Hai,

I am new to asp.net, i have 5 to 10 text box in a form, after
entering values in the textbox, if i press Pressing ENTER on a Form
Page Submits the Form. How to pass the cursor to next textbox by
pressing enter key.
Thanks

Regards
Raj.

Hai,

I gothrough that link given by you.

but in that example they used html controls i think, But in my
application i am using server controls. In that, textbox control, there
is no "onkeydown" event.

What can i do! pl. clear my doubt.

thanks in advance.

Regards,
Raj.

Jul 8 '06 #4
There are many users who expect that web forms will behave as windows forms
and the enter key will function as a tab key. Perhaps some javascript that
captures the enter key (keycode = 13) and returns the tab (keycode = 9) will
do.

"dgk" wrote:
On 7 Jul 2006 06:34:57 -0700, "raju" <po*******@gmail.comwrote:
Hai,

I am new to asp.net, i have 5 to 10 text box in a form, after
entering values in the textbox, if i press Pressing ENTER on a Form
Page Submits the Form. How to pass the cursor to next textbox by
pressing enter key.
Thanks

Regards
Raj.

You realize that you're supposed to use tab to move between controls?
Aug 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Deano | last post by:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanksMartin
7
by: deko | last post by:
I have a textbox in a form into which users enter a string to execute a search. After the user presses Enter, I'd like the focus to go back to the textbox, but the default behavior of the Enter...
5
by: Steve | last post by:
Hi, Is it possible to make hitting the enter key in an ASP textbox run the code behind an ASP button on a form? I have a search page which users tend to type in the query then just hit enter...
5
by: Girish | last post by:
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type...
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
0
by: Tom Edelbrok | last post by:
I'm using VS 2005 to develop an intranet asp.net web application and I get a weird situation. If I start out with any ASPX page that contains an ImageButton control followed by a TextBox control,...
7
by: Marc | last post by:
Hi, I want my user to be able to rename a button control by selcting rename from a menu. This then opens a text box in which to enter the new name in. I want the button control to...
4
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches....
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
6
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.