473,503 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use of the enter button

Hi

I want that when users type in textboxA enter it will automatically clicks
on buttonA and when they click on enter in TextBoxB then it click on ButtonB

How can that be done?

Thank you,
Samuel
Nov 28 '07 #1
2 894
On Nov 28, 5:16 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
Hi

I want that when users type in textboxA enter it will automatically clicks
on buttonA and when they click on enter in TextBoxB then it click on ButtonB

How can that be done?

Thank you,
Samuel
Hi Samuel,

Hope that you are using .Net 2.0. If so, place your
textboxA and buttonA in 1 panel control. Do the same with other text
box and button so that you have 2 panels containing you existing
controls separately.
Now in the page load event, just set the default
button property of the panels. This will do.
Reply in case of any problems.

Thanks,
coolCoder

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
Nov 28 '07 #2
Cool..

Thank you,
Samuel
"coolCoder" <an*********************@gmail.comwrote in message
news:70**********************************@x69g2000 hsx.googlegroups.com...
On Nov 28, 5:16 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
>Hi

I want that when users type in textboxA enter it will automatically
clicks
on buttonA and when they click on enter in TextBoxB then it click on
ButtonB

How can that be done?

Thank you,
Samuel

Hi Samuel,

Hope that you are using .Net 2.0. If so, place your
textboxA and buttonA in 1 panel control. Do the same with other text
box and button so that you have 2 panels containing you existing
controls separately.
Now in the page load event, just set the default
button property of the panels. This will do.
Reply in case of any problems.

Thanks,
coolCoder

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.

Nov 28 '07 #3

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

Similar topics

15
6540
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
5
6801
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
2929
by: Eric | last post by:
Hi All, I'm very experienced in traditional ASP and am new to (am learning) ASP.NET. FYI: I am initially learning ASP.NET with VB.NET to ease the transition for me. I have encountered what I...
5
3111
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
15
4011
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...
10
3569
by: john | last post by:
In a form I'm trying to make a search field to be able to quickly find a record on ID-number. User enters a number and presses enter to move to that record. How do I trap for the enter-keystroke...
4
7605
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....
4
2392
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
6964
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
3577
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...
0
7205
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
7349
jinu1996
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...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
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
5594
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,...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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 ...
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.