473,399 Members | 3,832 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,399 software developers and data experts.

Regardin the enter key press event

I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>

May 2 '07 #1
2 2042
Set the DefaultButton attribute of the <formto set the desired button which
should be invoked when Enter key is pressed.

Hope this is what you are looking for.

"Greoasy" wrote:
I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>

May 2 '07 #2
On May 2, 3:14 pm, Siva M <shiva...@online.excite.comwrote:
Set the DefaultButton attribute of the <formto set the desired button which
should be invoked when Enter key is pressed.

Hope this is what you are looking for.

"Greoasy" wrote:
I have a registration page with no of text boxes and 3 buttons for
insert update and delete. and a logout button on the top of the page.
If i place my control in an of the text box and press enter key it
automatically goes to the logout button and it logouts.
Actually when i press the enter key it should avctivate either of the
insert,update and delete buttons whchever is active.
Please let me know how to do this?
How can i overcome this enter key problem>- Hide quoted text -

- Show quoted text -
Hello,

Ya i tried with that and this works fine if there is a single button
on the form.But my page contains 3 buttons and each should be
activated depending on the functions performed.
for ex if i select new button my insert key should be activated when i
press the enter key.same way for delete and update.
can u help me in this...

May 3 '07 #3

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

Similar topics

3
by: Jose Egea | last post by:
Hello: I'm trying to execute a function when the user press Enter key in a TextBox. But something is happening in my form because after pressing a button, when I press the Enter key in the...
0
by: Lalit Bhatia | last post by:
I have a problem while using Enter key in text box. when user presses enter in the text box information of customer is loaded. and I have a clear button that clears all the controls on the form....
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
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...
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....
18
by: Zytan | last post by:
I want the same function to be run whether you press Enter or double click the listbox. It seems really verbose to write both handlers to both events everytime, even if they both call the same...
1
by: sandhyaharidas | last post by:
I have a registration page with no of text boxes and 3 buttons for insert update and delete. and a logout button on the top of the page. If i place my control in an of the text box and press enter...
4
by: portCo | last post by:
Hello there, I am using Visual Basic 2005. I want to store a value when I press enter key on the keyboard. Could anyone help me out? Thanks alot.
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.