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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:46:37+00:00 2026-05-20T12:46:37+00:00

Recently, I upgraded my solution to 4.0 and everything seems to have upgraded smoothly

  • 0

Recently, I upgraded my solution to 4.0 and everything seems to have upgraded smoothly but for ASP.NET AJAX.

I have an UpdatePanel like so:

<asp:UpdatePanel ID="pnlAdvSearch" UpdateMode="conditional" runat="server">
  <ContentTemplate>  
      <asp:Button ID="btnHidden" Runat="server" OnClick="btnHidden_Click"
              ClientIDMode="Static"/>
  </ContentTemplate>
  <Triggers>
      <asp:AsyncPostBackTrigger ControlID="btnHidden" EventName="Click"/>
  </Triggers>
</asp:UpdatePanel>

I have a type-ahead textbox which triggers the btnHidden_Click event on Click/Enter etc. I’m calling the following method on textbox click/enter.

  function getSelectionId() {     
      __doPostBack(
          '<%=btnHidden.ClientID%>',
          document.getElementById('<%=txtLocation.ClientID %>').value
      );
      theForm.__EVENTARGUMENT.value = "";
  }

I can see a postback happening and the Page_Load executing. However, the server-side btnHidden_Click never gets fired. I do not want to disable event-validation at the page-level. What am I doing wrong here? 🙁

  • 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-20T12:46:38+00:00Added an answer on May 20, 2026 at 12:46 pm

    This is what I ended up doing on Page_Load.

                if (Page.Request.Params.Get("__EVENTTARGET") == "btnHidden") //Workaround hack for AsyncPostBackTrigger fail
                    this.btnHidden_Click(null, null);
    

    When an async postback happens, I just fire the event explicitly. Kinda hacky but not worth spending any more time on it 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently upgraded my .Net 3.5 solution containing some C# code projects and
I recently upgraded my solution from .net framework 3.5 to 4.0. All good except
I have a project I recently upgraded to VS2010 - the project/solution files are
I have a solution with about 10 projects, and I recently upgraded to new
Recently upgraded the entire project to .NET 4.0 but when I debug javascript (using
I have a site that was built using asp.net MVC version 1. I recently
We have recently upgraded to VS2010 (10.0.40219.1 SP1Rel) and ILOG Rules For .net 7.1.1.4
I have a solution that uses EF Code First. I recently upgraded all my
I recently upgraded an ASP.NET app to .NET 3.5 and switched to the newer
I recently upgraded to the latest version of XCode, but apps made with this

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.