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

wire enter to button click

Hi

I have a asp.net page that has 5 User we controls in it. My header control
has a search text box with a 'go' button.

How would I configure the button so it is 'clicked' when the user hits enter
on the keyboard?

Thanks

Derrick
Nov 18 '05 #1
3 1068
http://www.allasp.net/enterkey.aspx

This should work for you, if you need more control, you can check out this
http://www.metabuilders.com/Tools/DefaultButtons.aspx

"Derrick" <De*************@geostrategies.ca> wrote in message news:1FgEc.939673$oR5.742538@pd7tw3no...
Hi

I have a asp.net page that has 5 User we controls in it. My header control
has a search text box with a 'go' button.

How would I configure the button so it is 'clicked' when the user hits enter
on the keyboard?

Thanks

Derrick

Nov 18 '05 #2
Hi Derrick,

In addition to Raterus's suggestion, here are some former threads which
discussing on the same problem:

http://groups.google.com/groups?hl=e...1uIYAEHA.2196%
40cpmsftngxa06.phx.gbl&rnum=2&prev=/groups%3Fq%3Ddefault%2Bbutton%2Bsteven%2
Bcheng%26ie%3DUTF-8%26hl%3Den

http://groups.google.com/groups?hl=e...lQYfSEHA.2988%
40cpmsftngxa10.phx.gbl&rnum=3&prev=/groups%3Fq%3Ddefault%2Bbutton%2Bsteven%2
Bcheng%26ie%3DUTF-8%26hl%3Den

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #3
Thank you for the assistance. With the a combinatio of these resources, I
was able to make it work.

Thanks

Derrick
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Bo**************@cpmsftngxa06.phx.gbl...
Hi Derrick,

In addition to Raterus's suggestion, here are some former threads which
discussing on the same problem:

http://groups.google.com/groups?hl=e...1uIYAEHA.2196% 40cpmsftngxa06.phx.gbl&rnum=2&prev=/groups%3Fq%3Ddefault%2Bbutton%2Bsteven%2 Bcheng%26ie%3DUTF-8%26hl%3Den

http://groups.google.com/groups?hl=e...lQYfSEHA.2988% 40cpmsftngxa10.phx.gbl&rnum=3&prev=/groups%3Fq%3Ddefault%2Bbutton%2Bsteven%2 Bcheng%26ie%3DUTF-8%26hl%3Den

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

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

Similar topics

2
by: Linda | last post by:
Hi, How do I dynamically add linkbuttons and wire them to same event? I am able to add linkbuttons but they do not fire the event. Does anybody have a working sample? Many thanks, Linda
5
by: Steve | last post by:
Hi, Is it possible to make hitting the enter key in an ASP textbox run the code behind an ASP button on a form? I have a search page which users tend to type in the query then just hit enter...
3
by: moondaddy | last post by:
using vb.net 1.1 I have a datalist and in it's item template I have 2 buttons, 'edit' and 'ShipToThisAddress'. The edit button works fine and it opens up the edit template as it works with the...
5
by: Eric | last post by:
Hi All, I'm very experienced in traditional ASP and am new to (am learning) ASP.NET. FYI: I am initially learning ASP.NET with VB.NET to ease the transition for me. I have encountered what I...
5
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
0
by: m miller | last post by:
Hi, Does anyone know how I can make an image button click when I hit the enter key? I want it to be the default. TIA, Marc Miller
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...
2
by: Chu | last post by:
Thanks everyone for taking a moment to read this. I've got a page where I use a LinkButton and I wire up a dynamic event to the button. When the user clicks the button, the event is fired as...
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.