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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:07:38+00:00 2026-05-13T02:07:38+00:00

I have an ajax accordion, and each pane contains an updatepanel (created dynamically). I

  • 0

I have an ajax accordion, and each pane contains an updatepanel (created dynamically). I want the updatepanels to refresh when the header of the pane is clicked, but there is no click event.

I can pop a button in the header, and register it as an asynch trigger using the scriptmanager, but I don’t want a button, I want the entire header to be a trigger.

I can’t see a way to set a div or a label as a trigger as they don’t have a server side click event. Is there some other way I can do 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-13T02:07:38+00:00Added an answer on May 13, 2026 at 2:07 am

    Use jQuery.

    The syntax would be as easy as the following:

    $('#myHeading').click(function(){
        // Your code here
    });
    

    Sometimes with ASP.NET I have had to use a wildcard ID match because ASP.NET creates really long semi-random clientside ID’s for your elements. You would do something like the following:

    $('[id*="myHeading"]').click(function(){
        // Your code here
    });
    

    Essentially you can select anything on the DOM and attach an event handler to it with jQuery. Sometimes you have to get creative with the selectors.

    IMPORTANT: If you are using updatepanels and the heading you want to monitor for a click is inside that panel, you will need to REBIND those event handlers to the element you are selecting after the panel is loaded/re-loaded via ajax. This can be achieved using the following code:

    var prm = Sys.WebForms.PageRequestManager.getInstance();
    
    prm.add_pageLoaded(panelLoaded);
    
    function panelLoaded(sender, args){
    
        $('[id*="myHeading"]').click(function(){
            // Do something after there is a click
        });
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have collapsible sections created using jQuery UI Accordion. When each section is expanded
I have an AJAX Accordion control defined in the page and within each accordion
I have the following inside of my Header Template of an Ajax Accordion: <ajaxToolkit:Accordion
I have an Ajax accordion, using c# asp.net, with a few panels. In my
I have a page that I am using an Ajax Accordion and when I
I have a series of dynamically generated inputs that I need to have ajax
I want to create a horizontal and vertical accordion in asp.net. I have use
Having a bit of a problem with the AJAX Accordion Control... I have two
I have an Ajax Accordion and I have the default selected index set to
Inside my accordion content i have rows of data that are loaded by ajax

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.