hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean 2 3219
You can intercept the client side enter keypress event of the text box and then click the correct button using javascript code.
Here's a good example: http://www.kamp-hansen.dk/pages/show...d=21&menuid=18
You could also try using this free control. http://www.metabuilders.com/tools/DefaultButtons.aspx
And here's a good article on the subject: http://www.allasp.net/enterkey.aspx
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Sean" <nospam@> wrote in message news:uo******** *****@TK2MSFTNG P10.phx.gbl...
hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean
Thank You Steve for those valuable links.
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message news:#K******** ******@tk2msftn gp13.phx.gbl...
You can intercept the client side enter keypress event of the text box and then click the correct button using javascript code.
Here's a good example: http://www.kamp-hansen.dk/pages/show...d=21&menuid=18
You could also try using this free control. http://www.metabuilders.com/tools/DefaultButtons.aspx
And here's a good article on the subject: http://www.allasp.net/enterkey.aspx
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Sean" <nospam@> wrote in message news:uo******** *****@TK2MSFTNG P10.phx.gbl...
hi,
i have a webform, which has a couple of formfields including a couple of buttons too.
the webform structure is
textbox1
button1
button2
textbox2
button3 - submit
How do i trap when the focus on textbox2 , so i could set the enable property of button1 and button2 to be false, so the Submit would work, when the Enter Key is pressed.
Any suggestion is welcomed and appreciated.
--
Thank You,
Sean This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AA Arens |
last post by:
When I place a record serch utility (vos the button placement wizzrd),
I discovered that the Match setting is "Whole Field" by default. How to
make "Any Part Of Field" default?
|
by: Dixie |
last post by:
Can I set the Format property in a date/time field in code?
Can I set the Input Mask in a date/time field in code?
Can I set the Format of a Yes/No field to Checkbox in code?
I am working on a remote update of tables and fields and can't find enough
information on these things.
Also, how do you index a field in code?
|
by: Jeff Cope |
last post by:
I'd like to have a text box on my webform and a button beside that will set
the current date in the text box when the button is clicked. Is there a way
to do this without doing a postback?
Thanks for your help.
Jeff
|
by: Xarky |
last post by:
Hi,
I have a page with 2 textboxes(Name and Surname) and two
buttons(Submit and Reset).
Now I have set the tab for them
1 Name
2 Surname
3 Submit
4 Reset
|
by: Brian Henry |
last post by:
Hi,
I have a bunch of forms in a DLL that I call from my main application. The
one form is a login form, and I have the tab order set in the order I want
it (password box first, then ok button then cancel button then database
selection combo box then user name text box, then back to password text box)
now the password, user name and database entry's are in a group box frame.
the buttons (Ok and Cancel) are outside the group frame.
Now...
| |
by: Marty McFly |
last post by:
Hello,
I have a control class that inherits from System.Web.UI.WebControls.Button.
When I drag this control from the "My User Controls" tab in the toolbox onto
the form, I want it to reflect the following default properties: Height =
32px, Width = 144px.
I declare the Width property in my control as...
\\\
|
by: andyrich_1 |
last post by:
I have a simple form that has two submit buttons on it.
The problem I have is that I want one button to be the default button
when the user is filling out one section of the form and another button
to be the default when filling out a different art of the form.
I can't seem to find a way of stopping the first button on the form
begin selected.
I know there is a way to do this in ASP.NET 2.0 but I can't seem to
find one in ASP.NET 1.0
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting" setting to be
"E_ALL", notices are still not getting reported. The perms on my file
are 664, with owner root and group root. The php.ini file is located
at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem
to be having an effect? ...
|
by: Glenn |
last post by:
I currently have a page that contains a logon control and a Wizard
control. I am having an issue when the user hits the "Enter" key, the
user gets logged off. This is because the logon control appears at the
top of the page and the browser defines the first submit button that
appears on the page as the "default" button. On other pages I have
resolved this issue by wrapping my input controls in an ASP Panel and
setting the panel's...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
I placed a button on a form menustrip for the purpose of causing the
horizontal scrollbar of my form to appear so that I can access controls
outside of the form's current view (the controls are further to the right of
the form than the form's default width - which may take up the entire screen
for some users). The form contains panels which will contain either
textboxes or datagridviews. The button is located on the menustrip towards...
|
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: 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: 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
| |