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

Form controls, who gets the enter key

bep
Hello

I have a asp.net form in VS.Net 2003. It has a custom control with a text
box and a button (search) in the top left hand corner. this is on every page
in our site, as it is on the main template.

I also have a search box and button in the content part of the page. This
search is completely different to the top left search. I want the enter
button to fire the content search button, not the top left button.

I have AutoEventWireup="true". I have tried AutoEventWireup="false".

But always, the top left button gets the enter button. Any way to stop this?

Bear in mind that the top left search control is shared, so the less I have
to do with that the better. But it is under our control, so we can change it.

This used to be so easy with nested and multiple forms.

Thanks
BEP
Nov 18 '05 #1
1 907
Check out this article, you will get answer for your question
http://www.allasp.net/enterkey.aspx

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

"be*@10.10.10.10" <be*********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Hello

I have a asp.net form in VS.Net 2003. It has a custom control with a text
box and a button (search) in the top left hand corner. this is on every page in our site, as it is on the main template.

I also have a search box and button in the content part of the page. This
search is completely different to the top left search. I want the enter
button to fire the content search button, not the top left button.

I have AutoEventWireup="true". I have tried AutoEventWireup="false".

But always, the top left button gets the enter button. Any way to stop this?
Bear in mind that the top left search control is shared, so the less I have to do with that the better. But it is under our control, so we can change it.
This used to be so easy with nested and multiple forms.

Thanks
BEP

Nov 18 '05 #2

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

Similar topics

6
by: Rob | last post by:
I need to create a form that will resize only the verticle size of the Form and not the width. So far I'm partial to the following code. Can someone please elaborate the ??? . . . . Const...
1
by: mirandacascade | last post by:
1) Module1 has the following delcaration: Public g_frmZZZ as Form Public g_txtForm2 as Variant 2) app has two forms: form1 and form2 3) a command button on form1 opens form2; it also has...
0
by: mirandacascade | last post by:
Using Access 2003. For this application when one enters data and clicks a command button, code gets run that does the following: For 5 different combo box controls: - create a querydef -...
6
Megalog
by: Megalog | last post by:
Hey guys, my turn to ask a question =D Ok here's my situation.. I have a super simple form, which is bound to a table with a single record. All the controls (mostly text boxes, some true/false...
2
by: buddyr | last post by:
Hello, I have an C#.net form with two textboxes bound to access database with two fields in one table. is it possible have user be able to open form and enter data into two textboxes and hit a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.