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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:34:43+00:00 2026-05-13T14:34:43+00:00

I have a user control which contains some buttons and a placeholder. Those buttons

  • 0

I have a user control which contains some buttons and a placeholder. Those buttons cause controls to be added/removed from placeholder. Everything works fine.

Now I want to put this user control in a page, and wrap it in an updatepanel like so:

            <asp:UpdatePanel ChildrenAsTriggers="true" ID="UpdatePanelFoo" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <grid:tablegrid ID="tablegrid_chapters" runat="server" SomeProperty="bar" />
                </ContentTemplate>
            </asp:UpdatePanel>

When I run the page, it’s still doing a full postback when I hit one of the buttons inside the user control. What am I doing wrong, and how can I remedy this?

Update:

protected void Page_Init()
{
    ScriptManager scr = ScriptManager.GetCurrent(this.Page);
    Response.Write("EnablePartialRendering: " + scr.EnablePartialRendering);
}

Outputs “EnablePartialRendering: true”

  • 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-13T14:34:44+00:00Added an answer on May 13, 2026 at 2:34 pm

    Make sure you have EnablePartialRendering=true on your ScriptManager in the page.

    Update

    It looks like your UserControl has no events to be looking for…you have 2 options here. Move the UpdatePanel inside the UserControl .ascx so it can see the button events as children to rig up or add an event for it to see, to do that try something like this:

        public event EventHandler Click;
    
        void btn_del_Click(object sender, EventArgs e)
        {
            if (NumberOfRowControls > 0)
            {
                var rowToWhack = panel_rows.Controls.Children().Single(x => x.ID == "myrow" + (NumberOfRowControls - 1));
                panel_rows.Controls.Remove(rowToWhack);
                NumberOfRowControls--;
            }
            if(Click != null) Click(this, e);
        }
    
        void btn_add_Click(object sender, EventArgs e)
        {
            var row = NewRow(NumberOfRowControls);
            panel_rows.Controls.Add(row);
            if(Click != null) Click(this, e);
        }
    

    And update the UpdatePanel to be looking for it:

    <asp:UpdatePanel ID="UpdatePanelFoo" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
         <grid:tablegrid ID="tablegrid_chapters" runat="server" SomeProperty="bar" />
      </ContentTemplate>
      <Triggers>
        <asp:AsyncPostBackTrigger ControlID="tablegrid_chapters" EventName="Click">
      </Triggers>
    </asp:UpdatePanel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple user control that contains some buttons that fire events which
I have a UIView which contains some controls (e.g. buttons, labels, etc). I overlay
I have a user control in silverlight which contains both XMAL and .cs file.
I have a user control in my wp7 application which contains two text boxes
I have a nested user control which appears on every single page. It contains
I have a user control which uses objects as inner properties (some code is
I am designing a WPF user control which contains other user controls (imagine a
I have two controls which are both contained within a user control. Panel location:
I have user control on a ASP.NET web page, which contains a GridView and
I have a ASPX Page that contains several user controls, which are loaded dynamically

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.