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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:37:34+00:00 2026-05-11T02:37:34+00:00

I have a page with two ContentPlaceHolders. One has a DropDown and another UpdatePanel

  • 0

I have a page with two ContentPlaceHolders. One has a DropDown and another UpdatePanel with content.

How can I trigger update to the UpdatePanel by the DropDown’s selectedItemChanged event when they are in different ContentPlaceholders?

The following would not work since UpdatePanel1 doesn’t know about DropDown1:

<asp:UpdatePanel ID='UpdatePanel1' runat='server' UpdateMode='Conditional'  ChildrenAsTriggers='true'>     <ContentTemplate>         Some content that needs to be updated here...     </ContentTemplate>     <Triggers>         <asp:AsyncPostBackTrigger ControlID='DropDown1' EventName='SelectedIndexChanged' />     </Triggers> </asp:UpdatePanel> 

One way is to make an ajax page method that would be called by javascript on the page when DropDown’s item is selected. Then in code behind, inside that page method, call UpdatePanel1.Update().

Is there an easier alternative?

  • 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-11T02:37:35+00:00Added an answer on May 11, 2026 at 2:37 am

    From http://msdn.microsoft.com/en-us/library/system.web.ui.asyncpostbacktrigger.aspx

    The control that the AsyncPostBackTrigger references must be in the same naming container as the update panel for which it is a trigger. Triggers that are based on controls in other naming containers are not supported.

    The workaround is to use the UniqueID of the control that the trigger is referencing. Unfortunately the UniqueID isn’t qualified until the control has been added to its parent (and its parent has been added to its parent, all the way up the control tree).

    In your code behind, try:

    UpdatePanel1.Triggers.Add(new AsyncPostBackTrigger() {     ControlID = DropDown1.UniqueID,     EventName = 'SelectedIndexChanged', // this may be optional }); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an aspx page with two buttons, one of the buttons has an
I would like to have two .css files. One for each master\content page and
I have a page with two Flash movies. When one (a content application) reaches
I have a master page that has two content sections like this (left some
I have a page with two buttons, one Button opens a popup window with
I have a page on my site with two forms, one for log in
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
I have a master page that divides the main content into two areas. There
I have two page: rooms.php and reservation.php User can only access to reservation.php via
I have a page that has two tabs created using jQuery, and I am

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.