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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:21:21+00:00 2026-05-26T10:21:21+00:00

I have two check boxes in an update panel. One is an ASP.NET CheckBox

  • 0

I have two check boxes in an update panel. One is an ASP.NET CheckBox control, the other is just an HTML <input> element. I have a button in a different update panel.

So here’s the relevant portion of the page:

<asp:UpdatePanel runat="server" ID="UpdatePanel1">
    <ContentTemplate>
        <input type="checkbox" id="check1" name="check1" />HTML Input<br />
        <asp:CheckBox runat="server" ID="check2" Text="ASP CheckBox"></asp:CheckBox><br />
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel runat="server" ID="UpdatePanel2">
    <ContentTemplate>
    <asp:Button runat="server" ID="Submit" Text="Submit" OnClick="Submit_Click" />
    </ContentTemplate>
</asp:UpdatePanel>

I check both check boxes, then I click the button. What I’m seeing is the check mark disappears from the one that’s just HTML, but the check mark is still there for the CheckBox control.

Why? I would have thought that nothing in the first update panel would change, because I’m doing a partial postback of the second update panel.

If I move the two checkboxes out of the update panel, then both keep their check marks (as I would have expected).

  • 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-26T10:21:22+00:00Added an answer on May 26, 2026 at 10:21 am

    My guess here is that your update panels need to be configured so that ONLY the update panel that is actually used is updated. When UpdatePanel2 is updated both panels are updating. I believe that as long as you set the UpdateMode=”Conditional” property on UpdatePanel1, you will get the desired effect.

    You can see this MSDN Documentation on the UpdateMode property.

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

Sidebar

Related Questions

I have two sets of check boxes. At least one in each group has
We are using ankhsvn to check in our .net code, however I have two
I have two tests to check the expected exception throw. I am using Junit
I have two List's which I want to check for corresponding numbers. for example
I have two instances running of same Windows Service. They check the health of
How do I check if two words have a common char? ex. : word
I'd like to check ancestry using two jQuery objects. They don't have IDs, and
I have a two forms on a page. The first one has several quantity
I have two JavaScript code snippets. These perform specific task when an 'Update' button
Is there a way to have the custom validator take the input from two

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.