Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:19:13+00:00 2026-05-23T09:19:13+00:00

In my master page there is a submit button for the site search. On

  • 0

In my master page there is a submit button for the site search. On most pages this is only triggered if enter is hit whilst the search box has focus. On a couple of pages though hitting enter on the main form it triggers the search submit.

I know that I could fix this by enclosing the search in it’s own form tag and then changing every page to have it’s own form tag, but I need something that is a lot simpler as a fix as I’m low on time. Is there a way I can tie the text boxes in the form to the correct submit button?

I can post code if you need it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:19:13+00:00Added an answer on May 23, 2026 at 9:19 am

    Enter will result in the first-found submit button on the page being pressed.

    Wrap your ‘forms’ into a Panel:

    <asp:Panel runat="server" id="pnlForm1" DefaultButton="btnSubmit">
       <asp:Button runat="server" id="btnSubmit"/>
    </asp:Panel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two search options: 1. On Master Page there is a text box
I have a master page, with a help link in the top menu. This
Is there any way to use a string on a page using a master
In my master page, on the menu there is an icon which uses Jquery
I have an ASP.Net page with a usercontrol on it. The submit button for
I have a form in my master page declared: <form name=search method=post action=searchresults.aspx id=searchform
See section /* Common Classes */ of this page. http://webdesign.about.com/od/css/a/master_stylesht_2.htm are these css classes
i have multilingual asp.net site. there is a masterpage and default.aspx. I put two
There are a few pages here addressing usage of jQuery with .net masterpages -
My master page contains a list as shown here. What I'd like to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.