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 2 898
On Nov 28, 5:16 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
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.
Cool..
Thank you,
Samuel
"coolCoder" <an************ *********@gmail .comwrote in message
news:70******** *************** ***********@x69 g2000hsx.google groups.com...
On Nov 28, 5:16 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
>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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the buttons. The problem is
when I post a form to itself, the Enter key will not submit the form, it
only clears the contents of the text box. The...
|
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 rather than actually clicking
the search button, but this does not run the search code
behind the button.
|
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 believe to be a huge limitation with ASP.NET
and I'm wondering how you have handeled this problem.
Let's suppose you have a page where the user can...
|
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 click event will
fire and the page will submit.
I have a series of pages with Previous and Next navigational Btns. The
Previous button is the...
|
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 CALLING FORM! This is very bad
for me, because in my application, Form1 responds to an ENTER keypress by
calling Form2. If the user closes Form2 via an...
| |
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 and where should I put the
code?
I found this:
You can set the form's KeyPreview property to YES, then in the Form's
KeyPress event, add the...
|
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. Recently somebody pointed out to me that
you can't just press ENTER anymore after typing in the TextBox but
that you HAVE to click on the submit...
|
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.
|
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 page has multiple button such login page with a search function somewhere around, then it's not respond properly. I have attached a brief example of...
|
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 has been
happening. It has only been searching when I click the Search button.
2) Neither of the Response.Write's have been displaying any text....
|
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...
| |
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. ...
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |