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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:09:15+00:00 2026-06-12T11:09:15+00:00

Problem here is, i have a Modal PopUp Extender inside a User Control, which

  • 0

Problem here is, i have a Modal PopUp Extender inside a User Control, which is called from another User Control inside a Page, inside a Master Page. The Page loads the first user control dinamically and when i want to display the modal dialog it loads the User Control into a placeholder dinamically and call the show method of the modal when the Modal Pop Up User control loads.

Inside the modal I have some TextBoxes and a Button to save some data into the database.

The problem is that the Buton onClick event doesn’t fire at all. I tried adding a breakpoint in the Onload event of the Modal Control, but it doesn’t get in there, oddly enough, if i place another breakpoint in Onthe load event of the Parent User Control (the one that holds the Modal PopUp) the breakpoint does stop correctly at the Parent User Control’s OnLoad event. I need to use the event handler, because there’s where i call the Stored Procedure to save the data into the DB.

Please note that i don’t want to just close the modalpopup window, i want to validate some textboxes then save some data into the database, that’s why i must us ethe event handler of the button.

Thaks for your support

  • 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-12T11:09:18+00:00Added an answer on June 12, 2026 at 11:09 am

    Here is a function I use in an app where I need a modal dialog box. The buttons are actually generated by the Jquery code so it’s guaranteed they events get fired:

      $(function () {
               $(".addNew").dialog({
                   autoOpen: false,
                   width: 300,
                   height: 300,
                   modal: true,
                   close: function (event, ui) {
               },
               buttons:
                       {
                           "Exclude Week": function () {
    
                               var cReason = $('#<%= ddlReasonCode.ClientID %> option:selected').text();
                               var Week = $('#<%= lblWeekChange.ClientID %>').text();
    
                               $.ajax(
                                       {
                                           type: "POST",
                                           url: "Ajax/ExcludeWeek.aspx",
                                           data: "week=" + Week + "&reasonCode=" + cReason,
                                           success: function (msg) {
                                               $('#resultDiv').text('Added to List');
    
                                           },
                                           error: function (x, e) {
                                               alert("The call to the server side failed. " + x.responseText);
                                           }
                                       }
                                   );
                                       $(this).dialog("close");
                           },
                           "Cancel": function () {
                               $(this).dialog("close");
                           }
                       }
           });
    
    
       });
    

    // THis is the code used to trigger the Dialog:

    $(".addNew").dialog("open");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with a master page containing a asp:textbox that I'm trying
i have a serious problem here. i'm trying to use a modal window in
i am running into a problem that i have a jquery modal popup in
I have a modal dialog which has a form. When a user clicks the
I have inherited some code using an ASP modal popup extender and for some
Hi i have a problem launching my dynamic modal popup. I need to launch
I've got an interesting box-model problem here. I have a header full of links,
Here is my problem: I have an array of model class(Let's say, 'addressModel' with
Can't understand what is a problem here: I have got main.cpp file where I
I'm not really sure if there is a single problem here or I have

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.