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

The Archive Base Latest Questions

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

I have an Updatepanel inside hidden Div, but I am getting Could not find

  • 0

I have an Updatepanel inside hidden Div, but I am getting “Could not find UpdatePanel with ID ‘ctl00_ContentPlaceHolder_ctl04_UpdatePanel1’. I am trying to show and hide this panel from code behind. Thanks for any help. Here is my code.

<div id="div1" runat="server" style="display:none">
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
            <table id="Table1">
               <tr>
                  <td>
                    <telerik:RadComboBox ID="RadComboBox1" runat="server"
                                        AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
                   </telerik:RadComboBox>
                  </td>
                  <td valign="top">
                     <asp:Button ID="button1" runat="server" OnClick="button1_Click" Text="Test1"
                                        /><br />
                     <asp:Button ID="button2" runat="server" OnClick="button2_Click" Text="Test2"
                                         />
                  </td>
                            </tr>
            </table>
    </ContentTemplate>
 </asp:UpdatePanel>
</div>
  • 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-20T02:28:12+00:00Added an answer on May 20, 2026 at 2:28 am

    you can only manipulate the the code inside the ContentTemplate from the updatepanel’s postbacks, so the “div1″s display property can’t be changed by the updatepanel’s postbacks.

    you could move the div inside the updatepanel and then it should work

    I’d try this:

      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel runat="server" id="div1" runat="server" style="display:none">
                <table id="Table1">
                   <tr>
                      <td>
                        <telerik:RadComboBox ID="RadComboBox1" runat="server"
                                            AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
                       </telerik:RadComboBox>
                      </td>
                      <td valign="top">
                         <asp:Button ID="button1" runat="server" OnClick="button1_Click" Text="Test1"
                                            /><br />
                         <asp:Button ID="button2" runat="server" OnClick="button2_Click" Text="Test2"
                                             />
                      </td>
                                </tr>
                </table>
    <asp:Panel>
        </ContentTemplate>
     </asp:UpdatePanel>
    

    Keep in mind the client id of div1 will no longer be div1 (unless your using .net 4 in which case you can specify that it is’div1′) you can fix this a variety of ways but basically you just need to add a little bit of javascript to the page that associates the actual WebControl.ClientID with ‘div1’.

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

Sidebar

Related Questions

I have a LinkButton inside an UpdatePanel that I do not want the client
I have a button inside an updatepanel. I have a PopupControlExtender linked to the
I have Datalist that is inside an updatepanel and it is in panel in
I have a GridView inside an UpdatePanel that is populated when a search is
I have a menu control inside of an updatepanel. When I hover over a
I have a asp:ListBox wrapped inside an asp:UpdatePanel. The list box contains all the
I have an ASP.Net CheckBoxList control inside an Ajax UpdatePanel. I will include the
Inside my page, I have the following: <aspe:UpdatePanel runat=server ID=updatePanel> <ContentTemplate> <local:KeywordSelector runat=server ID=ksKeywords
I have a Repeater with an ASP.NET AJAX 1.0 UpdatePanel inside it. There are
I have updatepanel inside it I have tabcontainer and inside it I have panel

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.