473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Enter Button Takes You to HomePage

On my webforms, if the user hits the Enter button they are directed back to
the home page. Why does this happen? How can I prevent the user from being
redirected when they hit the Enter button?

Thanks.
Nov 19 '05 #1
3 868
what is the first button on the page? by default the ENTER will act as a
click for that button.

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
On my webforms, if the user hits the Enter button they are directed back
to
the home page. Why does this happen? How can I prevent the user from
being
redirected when they hit the Enter button?

Thanks.

Nov 19 '05 #2
Curt, Are you refering to the button that is first in the tab order? Thanks.

"Curt_C [MVP]" wrote:
what is the first button on the page? by default the ENTER will act as a
click for that button.

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
On my webforms, if the user hits the Enter button they are directed back
to
the home page. Why does this happen? How can I prevent the user from
being
redirected when they hit the Enter button?

Thanks.


Nov 19 '05 #3
if there is a tab order, that's actually coded, it's VERY seldom you see one
with Web Forms

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
Curt, Are you refering to the button that is first in the tab order?
Thanks.

"Curt_C [MVP]" wrote:
what is the first button on the page? by default the ENTER will act as a
click for that button.

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"MrMike" <Mr****@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
> On my webforms, if the user hits the Enter button they are directed
> back
> to
> the home page. Why does this happen? How can I prevent the user from
> being
> redirected when they hit the Enter button?
>
> Thanks.


Nov 19 '05 #4

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

Similar topics

1
by: lauryn | last post by:
Hi everyone, it's been a LONG time since I've made an applet, and I was hoping to get some help. At my work, we have a $1mil+ database with a servlet interface. I know few details beyond that....
3
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed...
0
by: panik | last post by:
Hi, I have a Control, a SearchBox class, that is derived from UserControl. It is placed inside another UserControl (a page structure) that is placed inside a custom page class (derived from...
3
by: ACaunter | last post by:
Hi there.. I write in a textbox to search for something on my asp.net page and when i click the enter button, i want the Find button to be activated.. instead, one of the other buttons is being...
15
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...
5
by: Sekhar | last post by:
Hi all I have an ASP.NET Button Control. I woud like this button to make a Call to JavaScript function on some condition. How would i do this Thanks Sekhar
18
by: Zytan | last post by:
I want the same function to be run whether you press Enter or double click the listbox. It seems really verbose to write both handlers to both events everytime, even if they both call the same...
24
by: MichaelK | last post by:
Who knows how to prevent submitting a form on the press Enter button before all fields on the form are filled up. People just enter the first field hit Enter and it submits the form and doing...
1
by: kenneth6 | last post by:
msvc++: on windows form, there is a button and textbox. the button takes in the text from textbox to further the process. how can i allow user to press enter key in textbox to trigger the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
Oralloy
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,...
0
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
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,...

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.