473,404 Members | 2,195 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,404 software developers and data experts.

Default Button to Catch <ENTER> key

JP
Hi,

It's a login screen, so users enter their ID/Password and
hit <ENTER> instead of clicking on Login button. But when
they hit <ENTER> an Image Button gets clicked.

I want to make my Login Button a default so that when
users hit <ENTER> key, Login Button receives a click.

Please help!
Thanks!

JP

Nov 17 '05 #1
2 9456
JP,

I have code to do exactly this on my web site: www.aboutfortunate.com

Just go to the code library. The entry you need is titled: "Fire a button
click from any text box when enter key is pressed"

Just jump directly to page two of the datagrid. It's the first entry on
page two.

Happy coding!

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"JP" <jp*****@canada.com> wrote in message
news:08****************************@phx.gbl...
Hi,

It's a login screen, so users enter their ID/Password and
hit <ENTER> instead of clicking on Login button. But when
they hit <ENTER> an Image Button gets clicked.

I want to make my Login Button a default so that when
users hit <ENTER> key, Login Button receives a click.

Please help!
Thanks!

JP

Nov 17 '05 #2
Check Andy Smith's free DefaultButtons control:
http://www.metabuilders.com/Tools/DefaultButtons.aspx

--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

"JP" <jp*****@canada.com> wrote in message
news:08****************************@phx.gbl...
Hi,

It's a login screen, so users enter their ID/Password and
hit <ENTER> instead of clicking on Login button. But when
they hit <ENTER> an Image Button gets clicked.

I want to make my Login Button a default so that when
users hit <ENTER> key, Login Button receives a click.

Please help!
Thanks!

JP

Nov 17 '05 #3

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

Similar topics

11
by: Denis Hierstein | last post by:
I need a function, witch make a break in a for-loop and wait for the <enter>-key ... when I use Pascal I just use the Read; or the ReadLn;-function, then the loop stop as long as the user push the...
4
by: bh | last post by:
So, I am debating with someone about this. He believe that you can set up so when the user presses Enter it acts just like Tab, so it follows the tab order between text boxes in .NET just like you...
4
by: aurgathor | last post by:
I have a code that reads in 2 shorts, and checks if they are in a given range. I'd like to modify it to use a predefined default value if nothing, but as newline is entered. What would be the...
7
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common...
6
by: tor | last post by:
Hello How can I use an other key then TAB to move from one textBox to another?? Torfinn
1
by: JL | last post by:
Hi, Can i check the user press the <enter> key in multi-line textbox? cos i don't want user use the <enter> key to change the line in textbox, just want the line warp change the line. Thanks...
4
by: Paul W | last post by:
On my simple login-screen I have a 'username' and 'password' field and an imagebutton for the 'OK'. This used to work nicely so that when the user hit <Enter> from the password field, it invoked...
4
by: peshrad | last post by:
Hi ! I'm working with Win 2K and Visual Studio 2003. I have a problem because pressing <ENTER> in a text input control causes a postback of my web form. Here comes some example code (already...
2
by: Stevecbl | last post by:
Hello, I have an application that works on a PPC 2003 device but causes a slight problem on a WM 5.0 device. These devices are equipt with barcode scanners. The problem that I am seeing is that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.