Hi there,
we have an application which is built with several ASCX controls some of
which contain form elements (e.g. Textboxes, Buttons etc.)
For example: in the top section (one ascx-control), there is a
textbutton in which the user can enter a string to search for. There's
link button right next to that textbutton. Then, in the "content
section" (another ascx-control), there may be a login-dialog which
prompts the user for login-name and password, with another button "Login".
How can we make sure that when the user has entered his login data and
enters "return" (instead of clicking the button), the event handler of
the button is fired instead of firing the event handler of the
search-button? And vice versa: when the user has entered a search string
in the search-textbox and enters "return", how can we make sure this
"search-button" event handler is fired instead of any other "subforms"
event handler.
We cannot have multiple forms as only one form is allowed per ASPX page
(even when distributed among severy ascx-controls).
kind regards,
david 1 1877
This might be helpful: http://www.allasp.net/enterkey.aspx
Karl
"Holger (David) Wagner" <da***@purple-sunshine.de> wrote in message
news:cf******** **@svr7.m-online.net... Hi there,
we have an application which is built with several ASCX controls some of which contain form elements (e.g. Textboxes, Buttons etc.)
For example: in the top section (one ascx-control), there is a textbutton in which the user can enter a string to search for. There's link button right next to that textbutton. Then, in the "content section" (another ascx-control), there may be a login-dialog which prompts the user for login-name and password, with another button "Login".
How can we make sure that when the user has entered his login data and enters "return" (instead of clicking the button), the event handler of the button is fired instead of firing the event handler of the search-button? And vice versa: when the user has entered a search string in the search-textbox and enters "return", how can we make sure this "search-button" event handler is fired instead of any other "subforms" event handler.
We cannot have multiple forms as only one form is allowed per ASPX page (even when distributed among severy ascx-controls).
kind regards, david This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: http://links.i6networks.com |
last post by:
I want to force the users to click submit to submit the forms. How do I
disable "Enter Key" which will submit the form automatically when they
entered the data in text field then pressed "enter key"
|
by: Cindy |
last post by:
Hi all you smarties out there,
I'm having a little conundrum with my asp.net page
Scenario:
I have a form (asp.net) with no code behind (as yet).
I have placed a javascript function on a server side textbox control
to do something - eg change the words on label - when the key pressed
is the "enter" key.
I can see the label change to what i expect ----- BUT .... then the
|
by: Joeyej |
last post by:
Hi -
I'm trying to move/use a web form (containing some javascript field
checks) previously hosted on a Windows 2000 server. However, the FORM
METHOD="post..." command in the form (shown below) now renders "Page
not Found" when launched on the new Windows 2003 server (ws-server1).
The form is designed to use the write.asp program to write to an
Acccess database and is successful on any Windows 2000 server. This is
frustrating because...
|
by: PJ6 |
last post by:
I want to be able to, depending on the state of the page, direct what the
ENTER key causes the page to do.
The problem I'm having is I have a user control with a textbox and an
"enter" button. If this control is in a certain state, when the user hits
the ENTER key on that page, I want the ENTER event to be sent to the ENTER
button in that control, like the defuault button-clicking behavior I'm
seeing when a button is in the form istelf...
|
by: Lars Netzel |
last post by:
Hey!
I have tried...(in a datagrid)
e.KeyDate.Return
and
e.KeyDate.TAB
end
e.KeyDate.Enter
| |
by: Ralf Gedrat |
last post by:
Hello!
I have a Application, this throws after some time following exception:
Item has already been added. Key in dictionary: "- 1" key being added: "- 1"
I use Application.Run with ApplicationContext.
This error message comes from deeper levels must be thrown (mscorlib.dll?!)
?.
|
by: kurtj |
last post by:
Hello Gurus:
I have a validation script (below) that is somehow messed up. If the
Name field is blank, I get the alert message, then the browser window
goes to a blank document with the word "false" on it. What the ?!?!?!
To test, I commented out the 'return false;' code in the second IF
block, so now if there is a value in Name then I get the alert message
for Email and the page stays put.
|
by: Axel Bock |
last post by:
Hi all,
I am trying to get my head around what happens if I return a class
object from a function.
It seems C++ (MinGW) does not invoke the copy constructor if I do
something like this:
SomeObj foo()
{
SomeObj X;
|
by: roxanaislam |
last post by:
Hi:
I have a search form in my application which has 4 dropdown list controls, one text box, one "GO" button, one "reset" button. When the "GO" button is clicked the form gets submitted and the results page is displayed. When I press the "enter" key nothing happens. I want to submit the form by pressing the "enter" key also. I have placed <input type="text" style="display:none"> after the <form> tag in the HTML section. Now if my cursor...
|
by: roxanaislam |
last post by:
Submitting Form by pressing the "ENTER" key
--------------------------------------------------------------------------------
Hi:
I have a search form in my application which has 4 dropdown list controls, one text box, one "GO" button, one "reset" button. When the "GO" button is clicked the form gets submitted and the results page is displayed. When I press the "enter" key nothing happens. I want to submit the form by pressing the "enter"...
|
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: 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: 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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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.
| |