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 2 9476
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
<Enter>-key.
|
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 can do in Access. I
personally have never run across something like this, but I am still young in
the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.
|
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 best way to do that?
TIA
current code:
do {
|
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
browsers? The script bellow is IE only. It fails FF 1.0 and NN 7.
Also, if I can trap the keypress I would like to use it to tab to the next
tabindex.
|
by: tor |
last post by:
Hello
How can I use an other key then TAB to move from
one textBox to another??
Torfinn
| |
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 a lot
|
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 the VB code behind the image-button, and away he went.
Suddenly this has stopped working like this. It still works if you use the
mouse to click on the button, or first TAB to it, then click <Enter>.
However, if you now hit <Enter> with the...
|
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 stripped of most of the unnecessary
code):
----------------------------------------------------------------------------
|
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 on the WM 5.0 device, when I scan a barcode in a combo box, the list is automatically displayed hiding the text box below it. I have to click somewhere on the screen to close it. This does not happen on the PPC 2003 device.
I have looked into the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |