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 3333060
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:45:17+00:00 2026-05-17T23:45:17+00:00

I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has

  • 0

I have an ASP.net page.
That has an Ajax Toolkit Tab Control.
That has tabs.
That have custom ascx controls I wrote.

I have a text box that perform a search action. It is declared like this:

            <asp:TextBox ID="txtPrereqSearch" runat="server"
                ontextchanged="txtPrereqSearch_TextChanged"></asp:TextBox>

Nothing fancy. This format has been working for months. There’s no submit button. It just posts back when I hit enter. The problem appeared when I added a second custom control using the same type of feature. Now browsers don’t postback when I type something in either of these textboxes and press enter.

It seems that browsers have a default way of handling one textbox in one form, but that behavior changes when the number reaches two.

Is there an easy way around this? I guess I can create a hidden submit button but it seems like there is probably a better way to deal with this when the functionality is in two separate custom controls.

Your feedback is appreciated!

  • 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-17T23:45:18+00:00Added an answer on May 17, 2026 at 11:45 pm

    The answer was a little different than I expected, but philosophically like my original idea that @jamietre reinforced.

    I had to surround the controls with an <asp:Panel> tag with a DefaultButton attribute. A-like-a so:

    <asp:Panel ID="ButtonPanel" runat="server" DefaultButton="btnSubmit">
                            <asp:Label ID="Label1" runat="server" Text="Course:"></asp:Label>
                            <asp:TextBox ID="txtPrereqSearch" runat="server"
                                ontextchanged="txtPrereqSearch_TextChanged"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="txtPrereq_TextBoxWatermarkExtender" 
                        runat="server" Enabled="True" TargetControlID="txtPrereqSearch" 
                        WatermarkCssClass="Watermark" WatermarkText="e.g., MATH201"></asp:TextBoxWatermarkExtender>
                            <asp:Button ID="btnSubmit" CssClass="InvisibleSubmit" runat="server" Text="Submit" OnClick="txtPrereqSearch_TextChanged"/>
                        </asp:Panel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET page that uses the ASP.NET Ajax Control Toolkit TabContainer .
I have a ASP.NET web page that contains many textboxes. Each textbox has a
In my ASP.NET page, I have an input box that has to have the
I have a C#/ASP.NET .aspx page that declares two controls that each represents the
I have an asp.net app. It has a page that requires authentication. The authenticated
I have an ASP.NET Page that contains a User control called ReportCtrl (my own
In summary : I have an ASP.NET web page that causes an AJAX postback
I have a custom search control on my page (asp.net) which contains a textbox
I have an ASP.NET page that has two input elements: A TextBox that is
I'm developing an ASP.NET application with C# and Ajax. I have a page that

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.