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

  • Home
  • SEARCH
  • 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 65799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:00:11+00:00 2026-05-10T19:00:11+00:00

I have a Page that has a single instance of a UserControl that itself

  • 0

I have a Page that has a single instance of a UserControl that itself has a single UpdatePanel. Inside the UpdatePanel are several Button controls. The Click event for these controls are wired up in the code-behind, in the Init event of the UserControl.

I get the Click event for the first button I push, every time, no problem. After that, I only get Click events for one button (SearchButton) – the rest are ignored. I have included the code for the control below – for sake of brevity, I have excluded the click event handler methods, but they are all of the standard ‘void Button_Click(object sender, EventArgs e)’ variety. Any ideas?

<asp:UpdatePanel ID='PickerUpdatePanel' runat='server' UpdateMode='Conditional'>     <ContentTemplate>         <asp:Panel ID='Container' runat='server'>             <div>                 <asp:TextBox ID='PickerResults' runat='server' style='margin-right: 3px;' SkinID='Plain' />                 <asp:Image                     ID='LaunchPopup' runat='server' ImageUrl='~/images/icons/user_manage.png'                      ImageAlign='Top' BorderColor='#294254' BorderStyle='Dotted' BorderWidth='1px'                      Height='20px' Width='20px' style='cursor: pointer;' />             </div>             <asp:Panel ID='PickerPanel' runat='server' DefaultButton='OKButton' CssClass='popupDialog' style='height: 227px; width: 400px; padding: 5px; display: none;'>                 <asp:Panel runat='server' id='ContactPickerSearchParams' style='margin-bottom: 3px;' DefaultButton='SearchButton'>                     Search: <asp:TextBox ID='SearchTerms' runat='server' style='margin-right: 3px;' Width='266px' SkinID='Plain' />                     <asp:Button ID='SearchButton' runat='server' Text='Go' Width='60px' SkinID='Plain' />                 </asp:Panel>                 <asp:ListBox ID='SearchResults' runat='server' Height='150px' Width='100%' SelectionMode='Multiple' style='margin-bottom: 3px;' />                 <asp:Button ID='AddButton' runat='server' Text='Add >>' style='margin-right: 3px;' Width='60px' SkinID='Plain' />                 <asp:TextBox ID='ChosenPeople' runat='server' Width='325px' SkinID='Plain' />                 <div style='float: left;'>                     <asp:Button ID='AddNewContact' runat='server' SkinID='Plain' Width='150px' Text='New Contact' />                 </div>                 <div style='text-align: right;'>                     <asp:Button ID='OKButton' runat='server' Text='Ok' SkinID='Plain' Width='100px' />                 </div>                 <input id='SelectedContacts' runat='server' visible='false' />             </asp:Panel>             <ajax:PopupControlExtender ID='PickerPopEx' runat='server' PopupControlID='PickerPanel' TargetControlID='LaunchPopup' Position='Bottom' />         </asp:Panel>    </ContentTemplate>    <Triggers>         <asp:AsyncPostBackTrigger ControlID='AddButton' EventName='Click' />         <asp:AsyncPostBackTrigger ControlID='SearchButton' EventName='Click' />         <asp:AsyncPostBackTrigger ControlID='AddNewContact' EventName='Click' />     </Triggers> </asp:UpdatePanel>  public partial class ContactPicker : System.Web.UI.UserControl {     protected void Page_Init(object sender, EventArgs e)     {         SearchButton.Click += new EventHandler(SearchButton_Click);         AddButton.Click += new EventHandler(AddButton_Click);         OKButton.Click += new EventHandler(OKButton_Click);     }      // Other code left out } 
  • 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. 2026-05-10T19:00:12+00:00Added an answer on May 10, 2026 at 7:00 pm

    It seems that adding UseSubmitBehavior=’false’ to the button definitions has solved my problem. Still don’t know why that first button click worked at all.

    • 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 Site that has a single Master Page. On one of
I have a login page that has several textboxes on the page, one of
I have a page that has 3 used controls that are dynamically added to
I have a page that has an iframe From one of the pages within
In a web application, I have a page that contains a DIV that has
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
On my C# asp.net webform I have a search page that has roughly 20
I have an XHTML strict page that has an invisible div that is controlled
I have a page base class that has no .aspx file and so I
If I have a control on a page that has its Datasource set to

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.