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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:19:09+00:00 2026-05-24T11:19:09+00:00

On my ASP.NET Web Forms page, there is a Panel which is a modal

  • 0

On my ASP.NET Web Forms page, there is a Panel which is a modal popup (using ModalPopupExtender in the AJAX Control Toolkit). Apparently, the jQuery .click(f) method does not work if the target control is in a popup. The following code works only if I move the CheckBox out of the popup:

$("#checkBox").click(function() {
  // do something
});

This is how the checkbox is declared on the server site:

<asp:CheckBox runat="server" ID="checkBox" Text="..." ClientIDMode="Static" />

I need to bind a handler to the checkbox, while in the panel. Does anybody habe a hint for me?

Matthias

  • 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-24T11:19:10+00:00Added an answer on May 24, 2026 at 11:19 am

    I don’t know how the popups are implemented within the AJAX Control toolkit, but I suspect that the controls are added to the popup dynamically.
    If that is the case, you should do this (assuming you’re not using an outdated version of jQuery):

    $("#checkBox").live('click', function() {
      // do something
    });
    

    (See here to understand how this works.)

    Try that and see if it works. If you’re stuck with an old version of jQuery, I recommend using the LiveQuery plugin.

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

Sidebar

Related Questions

I have an ASP.NET Web Forms application. There is a page with TextBoxes and
I have a asp.net webforms page in which I'm using the jqGrid component. The
In traditional ASP.NET (Web Forms), the UpdatePanel control lets you do a partial refresh
I have a ASP.NET Web Forms application and I'm using some dynamic controls in
I am testing the UI of my ASP.Net Web Forms app using NUnit/Watin. I
I've got an asp.net web form, there is an update panel that contains a
In my asp.net web application, I'm using asp.net forms authentication with following configuration. <authentication
Hello, I am using update panel in my ASP.net page for partial page postbacks.
I've built an ASP.NET application that's using Forms Authentication. In our hosting account control
I want to create an asp.net web forms website that has a products page.

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.