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

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Having the same hash code does not mean the object… May 11, 2026 at 3:56 pm
  • added an answer You cannot do this with JPA 1.0. Some implementations provide… May 11, 2026 at 3:56 pm
  • added an answer Here's the JSP syntax, which I have used with Struts.… May 11, 2026 at 3:56 pm

Related Questions

I'm new to ASP.NET and want to have an asp:content control for the page
I am getting the following XHTML validation warning in my ASP.NET MVC master page:
I have a page with two Flash movies. When one (a content application) reaches
I have a jsp page with two radio tags. The page contains a struts2

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.