Hi,
I've written a sort of wizard in which the user has to answer some
questions.
This wizard contains a radiobuttonlist en two buttons (back and next).
With the first question there's no problem because I only show one button
but with the second question the problems start.
In the beginning no control has the focus but when the user select an option
from the list, the focus is automaticly set on the back button.
So when the user presses the ENTER key, it goes back to the previous
question in stead of to the next.
Is there a way to put the focus on the next button so it goes to the next
question?
Thx in advance.
Frederik 3 2390
You can do it in a javascript. Setup an onload event for the <body> tag. In
the event handler put a line.
myForm.nextButt on.focus();
You can get server side to emit client side code that will tell the client
what button is to set focus on.
Eliyahu
"Frederik Vanderhaegen" <fr************ *******@pandora .be> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
I've written a sort of wizard in which the user has to answer some questions. This wizard contains a radiobuttonlist en two buttons (back and next). With the first question there's no problem because I only show one button but with the second question the problems start. In the beginning no control has the focus but when the user select an
option from the list, the focus is automaticly set on the back button. So when the user presses the ENTER key, it goes back to the previous question in stead of to the next. Is there a way to put the focus on the next button so it goes to the next question?
Thx in advance.
Frederik
Check out this article, http://www.allasp.net/enterkey.aspx
--
-Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Frederik Vanderhaegen" <fr************ *******@pandora .be> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
I've written a sort of wizard in which the user has to answer some questions. This wizard contains a radiobuttonlist en two buttons (back and next). With the first question there's no problem because I only show one button but with the second question the problems start. In the beginning no control has the focus but when the user select an
option from the list, the focus is automaticly set on the back button. So when the user presses the ENTER key, it goes back to the previous question in stead of to the next. Is there a way to put the focus on the next button so it goes to the next question?
Thx in advance.
Frederik
Hi,
My focus problem is solved by replacing the back button with a
htmlinputbutton but now I have another problem.
With the <asp:button> I used the command event to pass a variable through
the commandargument , htmlinputbutton s don't have this event.
Is there a workaround or a way to generate the command event?
Frederik
"Saravana" <sa******@sct.c o.in> schreef in bericht
news:et******** ******@TK2MSFTN GP11.phx.gbl... Check out this article, http://www.allasp.net/enterkey.aspx
-- -Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com "Frederik Vanderhaegen" <fr************ *******@pandora .be> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
I've written a sort of wizard in which the user has to answer some questions. This wizard contains a radiobuttonlist en two buttons (back and next). With the first question there's no problem because I only show one button but with the second question the problems start. In the beginning no control has the focus but when the user select an option from the list, the focus is automaticly set on the back button. So when the user presses the ENTER key, it goes back to the previous question in stead of to the next. Is there a way to put the focus on the next button so it goes to the next question?
Thx in advance.
Frederik
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: 'bonehead |
last post by:
Greetings,
I'm still something of a newbie to html/php/mysql.
I have a php/html form with several fields of type "input". If the user
enters improper data in a particular field and clicks the Submit button,
the php script has to trap it and return a javascript error message box
with an OK button. That part I've already got down.
But, you know how in Visual Basic you can set the focus on the offending
|
by: theintrepidfox |
last post by:
Dear Group
I wondered whether you can help me with this. I do have a page that
contains a button and an IFrame. The IFrame contains a dummy page that
is set to redirect to a word document when loaded so eventually the
word document will be displayed in the IFrame. That works all well. No
problem.
The only trouble I have is with the button contained on the parent
page. When pressed, it runs this script:
|
by: Miquel |
last post by:
Hi all.
I felt frustrated when developing an 'UserControl' derivated from
textBox, because sequence event (and Validate event) seems to fail.
I Always thought my code was wrong. But after trying the UserControl a
lot of hours I have the feeling that c# (or .Net) fails.
Thus, I have developed a simple program with 3 textBox, 1 Botton and 1
ListBox (for showing results) which fire OnEnter, OnGotFocus,
|
by: Elsa Luiz |
last post by:
Hi everyone,
I have this problem hope you could help me...
I have an A.aspx page with a button, when I click the button I would
like to open another window with containing B.aspx. The problem is
that the window B.aspx appears fine but the focus returns to the
parent (A.aspx), I would like the focus in B.aspx window.
When I click the button on A.aspx I execute the following code:
private void btMyButton_Click(object sender,...
|
by: theintrepidfox |
last post by:
Dear Group
Some would think this works but somehow the Focus Button Click Event
comes back with a message saying that WindowObjectReference is either
NULL or not an object! Both buttons are contained on the same page. Any
ideas what's wrong?
Tanks for your help and efforts!
Have a nice day!
| |
by: melanieab |
last post by:
Hi,
From reading something months ago, I've been under the impression that
saying button1.Focus() is enough to focus on the button and highlight it (the
dotted box). If this is true, I don't know what's wrong with my version, but
it doesn't work. In certain circumstances, when a button is definitely
focused on, you wouldn't be able to tell so from looking at the screen (the
dotted box isn't there so it looks like nothing's focused on). ...
|
by: Patrick [MSFT] |
last post by:
Let me preface this with the goal I'm trying to achieve is mimic a feature
of another language (Dexterity used by Microsoft Dynamics) and so while a
filling a drop down list is a workable solution I'd rather do it like
Microsoft Dynamics does and use separate textbox and lookup button.
What I have is, simply, is a C# winform, a textbox and a pushbutton.
On the textbox, on the validating event of the textbox I check my customer
table...
|
by: Gerhard Heemskerk |
last post by:
Hello,
I have a button on the main form and the follwing code when you click on it. Though the last record is the sub form (datasheet view) is shown, the focus remains on the button last_transaction on the main form. I tried to get the focus on the sub form form_transaction.setfocus but i get an error 'the expression contains an invalid methode'. When I search for a solution everyone states that the above statement should work. But 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: 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: 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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: 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.
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |