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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:04:05+00:00 2026-06-03T06:04:05+00:00

I am trying to activate a modal popup using ajaxtoolkit. I’m trying to show

  • 0

I am trying to activate a modal popup using ajaxtoolkit. I’m trying to show the popup with javascript. however, the javascript does not recognize the element ALTHOUGH that in the dynamic page created everything seems fine and the <%=PleaseWaitPopupModal.ClientID %> is correctly translated to the right name of the corresponding panel.

Does anyone has an idea why the x var in the javascript function is null????

These pieces of code lye inside a child page (i.e. they have a masterpage, so I an forced to use the %= thing).

function btnSendClientClick() {
    var x = document.getElementById("<%=PleaseWaitPopupModal.ClientID %>");
    x.show();



<asp:Button ID="btnSend" runat="server"
OnClientClick="btnSendClientClick()" OnClick="btnSend_Click"
CausesValidation="true" Text="send" />

<asp:Button ID="btnStam3" runat="server" Text="" Style="display: none;" />
<ajaxToolkit:ModalPopupExtender runat="server" ID="PleaseWaitPopupModal" TargetControlID="btnStam3"
    PopupControlID="pnlPleaseWait" BackgroundCssClass="modalBackground" DropShadow="false"
    RepositionMode="RepositionOnWindowScroll">
</ajaxToolkit:ModalPopupExtender>

<asp:Panel ID="pnlPleaseWait" runat="server" Style="display: none;">
    <div style="margin: auto;">
        Please wait...
    </div>
</asp:Panel>

any help is appreciated. thanks in advanced.

  • 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-03T06:04:06+00:00Added an answer on June 3, 2026 at 6:04 am

    Use the $find() method, like so:

    $find('PleaseWaitPopupModal').show();
    

    and

    $find('PleaseWaitPopupModal').hide();
    

    The other thing you may have to do is set a BehaviourID:

    BehaviourID="PleaseWaitPopupModal"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get get zombie.js to activate a link that uses javascript.
I am trying to activate the click event of an element within an iFrame
I am trying to activate my virtualenv using a php script or a python
I am trying to activate a slideDown() onclick with an element that has been
I'm trying to activate a CSS transition with Javascript through DOM when a div
I'm trying to install and activate ImageMagick with Zend Server (on Ubuntu Server Linux),
Trying to comply with StackOverflow's suggestion of asking a question, not creating a discussion,
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
The overview of what i'm trying to do is resend an activate account email
I'm getting an error when trying to activate a webpart. It activates fine in

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.