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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:14:51+00:00 2026-05-16T04:14:51+00:00

<ajaxtoolkit:AccordionPane ID=accordianPaneAroundTheCheckbox runat=server> <Content> <asp:UpdatePanel ID=updatePanelAroundTheCheckbox runat=server > <ContentTemplate> <div> <asp:CheckBox ID=chkFoo AutoPostBack=true runat=server

  • 0
<ajaxtoolkit:AccordionPane ID="accordianPaneAroundTheCheckbox" runat="server">
    <Content>
        <asp:UpdatePanel ID="updatePanelAroundTheCheckbox" runat="server" >
            <ContentTemplate>
                <div>
                    <asp:CheckBox ID="chkFoo" AutoPostBack="true"  runat="server" OnCheckedChanged="DoBar"/>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </Content>
</ajaxtoolkit:AccordionPane>

We have something like the above. Extra stuff has been left off as it is a large page.

I place a breakpoint at the begining of Page_Load and DoBar. The first time I click the checkbox, the breakpoint on Page_Load is hit, but DoBar is not. The second time I click the checkbox, both breakpoints are hit.

Why could this be happening? I’m not dynamically generating the checkbox. It’s ClientID is the same every time (no dynamically generated or ID’d containers). I’ve tried resubscribing to the event in the Page_Load, but it didn’t hit the first time, and just hit it subsequent times twice.

Update I have tried removing the UpdatePanel completely. Not only does the whole page postback, which I don’t want, but the event is still not entered. What can block/swallow an event call like that? Is there some exception deep in the bowels of a master page or framework call or something somewhere that I can’t see?

  • 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-16T04:14:51+00:00Added an answer on May 16, 2026 at 4:14 am

    The checkbox isn’t being set by anything on the server side. The form is populated by an ajax call to a PageMethod that pulls a databag from the server and populates the controls. The problem is that the server thought it was unchecked, but javascript checked it. When I unchecked it, the postback happened, and the viewstate still thought its previous state was unchecked, and the current state is now unchecked. Thus, the CheckedChanged event doesn’t fire.

    A thousand grisly deaths to Viewstate. I’m close enough to fix the issue now. Thanks for trying/looking.

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

Sidebar

Related Questions

<asp:TextBox ID=TextBox5 runat=server Height=30px Width=68px></asp:TextBox> <ajaxToolkit:DropDownExtender ID=TextBox5_DropDownExtender runat=server DynamicServicePath= Enabled=True TargetControlID=TextBox5> </ajaxToolkit:DropDownExtender> //this.TextBox5_DropDownExtender ????
I have the following front end code: <ajaxToolkit:TabContainer runat=server Height=150px Width=70% ActiveTabIndex=1 OnDemand=true AutoPostBack=false
<ajaxToolkit:ModalPopupExtender runat=server id=ModalPopupExtender1 cancelcontrolid=btnCancel okcontrolid=btnOkay targetcontrolid=Button1 popupcontrolid=Panel1 drag=true backgroundcssclass=ModalPopupBG /> <asp:Button ID=Button1 runat=server Text=Test
I have user control which looks like <div> <asp:LinkButton ID=btnShow runat=server Text=Select CausesValidation=false />
My accordion panel in markup: <ajaxToolkit:Accordion ID=MyAccordion runat=server SelectedIndex=0 HeaderCssClass=accordionHeader HeaderSelectedCssClass=accordionHeaderSelected ContentCssClass=accordionContent AutoSize=None FadeTransitions=true
I thought something like this <ajaxToolkit:CalendarExtender ID=TextBox1_CalendarExtender runat=server TargetControlID=txtDatumPoaganje Format=MM/dd/yyyy StartDate=<%=DateTime.Now%>> But it doesnt
I'd like to use an ajaxToolkit:CalendarExtender on an asp:Label. When I attach a CalendarExtender
Can I make ComboBox from AjaxToolkit make call to server every time new letter
I'm using the AjaxToolkit in asp.net project c# code. I have a script managet
Why isn't this working? <ajaxToolkit:TabPanel Enabled='<%# User.IsInRole(admin) %>'... While this works: <asp:TextBox Enabled='<%# User.IsInRole(admin)

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.