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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:55:08+00:00 2026-06-13T07:55:08+00:00

I have a button nested inside an update panel which has a CommandArgument tied

  • 0

I have a button nested inside an update panel which has a CommandArgument tied to it. This calls a method which updates some label and text in an area not contained in the UpdatePanel. If I comment out the update panel the button works correctly so I know it is coming from the update panel. Anyone know how I can pass this through?

protected void Button_Command(object sender,
System.Web.UI.WebControls.CommandEventArgs e)
{
//update textboxes and labels here
}

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
    <div>


                                    <asp:DataList ID="dListItems" runat="server" DataKeyField="PRODUCT_ID" RepeatColumns="4"
                                        RepeatDirection="Horizontal"  ShowFooter="False" ShowHeader="False" CellPadding="4">
                                        <HeaderTemplate>
                                            No Record Found....!
                                        </HeaderTemplate>
                                        <ItemTemplate>

                                                            <asp:Button ID="Button" runat="server" Text="Add to Cart" 
                                                            CommandArgument='<%# Eval("Id") %>'  CausesValidation="False"  
                                                            CssClass="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                                                            OnCommand="Button_Command"   
                                                            /></span></span></p>

                                        </ItemTemplate>
                                    </asp:DataList>

                    </div>

                </td>
            </tr>
        </table>
    </div>
</ContentTemplate>

  • 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-06-13T07:55:09+00:00Added an answer on June 13, 2026 at 7:55 am

    which updates some label and text in an area not contained in the
    UpdatePanel

    That’s the problem. UpdatePanel will only update what is within and not what is outside. Try to put those control also the UpdatePanel and see them worked

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

Sidebar

Related Questions

I have GridView and Button controls nested inside a Panel . <asp:Panel ID=PanelPopUp runat=server>
I have a JEditorPane which is displayed inside a popup, triggered through a button.
I have a site I am designing that has some nested DIV elements that
I have DHTML content inside a fieldset . This includes plain html, nested objects
I have button which post values of form to url but during post i
I have button, which fires an event, that deletes a record from the database.
I have this treepanel and i want to call this.getId() method of mainpaneltree from
I have a WPF UserControl nested inside an ElementHost in a WinForm UserControl intended
I have a custom cell renderer for a JList which displays a nested JList
In Flex 3, I have an ItemRenderer that has a button in it. I

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.