473,426 Members | 1,878 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,426 software developers and data experts.

Default button in webform

Is there a way to control which button in a webform is the default for
when a user hits the enter key? I need it to not be the first button,
which is what seems to happen now.

Thanks.
Nov 19 '05 #1
3 1157
No one wrote:
Is there a way to control which button in a webform is the default for
when a user hits the enter key? I need it to not be the first button,
which is what seems to happen now.

Thanks.


The default button is always the first button on the form.

However, you can capture the "Enter" key with JavaScript
to get the behavior you want:
http://dotnetjunkies.com/WebLog/darr...3/03/8374.aspx

--

Edge
Nov 19 '05 #2
check out this article, this will explain how you can default button for a
page.
http://www.allasp.net/enterkey.aspx

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"No one" <no***@yahoo.com> wrote in message
news:7k************@gandalf.grey-net.com...
Is there a way to control which button in a webform is the default for
when a user hits the enter key? I need it to not be the first button,
which is what seems to happen now.

Thanks.

Nov 19 '05 #3

Saravana wrote:
check out this article, this will explain how you can default button for a
page.
http://www.allasp.net/enterkey.aspx


Interesting article, though I'm not sure what form of English it is in.
It is very difficult to read.
Nov 19 '05 #4

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

Similar topics

1
by: teddy | last post by:
I am trying to create a bookstore WebApplication using c#. I can display the books (obtained from sql server) on a table in a WebForm. At the end of each row, I would like to add "add to cart"...
4
by: Ester | last post by:
I have an interior design of a living room with lights and aircond image. My task is to load the living room image without any light and aircond images as background image of a WebForm after that I...
2
by: Ester | last post by:
Instead of drag and drop image button from Toolbox and name the image button id on the properties box, I would like to load image button ID from database. I created a database table that stores...
0
by: Dharmesh | last post by:
Hi every1, I have two buttons on a webform and I want to make one button as a default button. But when I view the page in browser its the wrong button which is getting the default property. ...
6
by: Paul Turley | last post by:
Does anyone have some sample script to "press" a button or image button when the user presses the Enter key? I see this behavior on a lot of web pages but I'm not finding any samples. Thx --...
4
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? ...
3
by: A.M | last post by:
Hi, How can I have an asp.net button as default button? Thanks, Alan
7
by: Morten | last post by:
Hi! I have a problem that's driving me nuts: I have a webform with a user control containing a number of buttons at the top. On my form I have a search button that I want to be the default...
1
by: JDeats | last post by:
So I have a new WebForm created in VS.NET 2005 that's in the default "flow layout". I have a dropdown list box followed by HTML break- return <brtags and two two text boxes, below the text boxes I...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
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...
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,...
0
isladogs
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.