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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:39:38+00:00 2026-05-11T14:39:38+00:00

I followed several web resources to understand how to show a popup from client

  • 0

I followed several web resources to understand how to show a popup from client side, and I made this code:

<asp:ImageButton runat='server' ID='btnOk' ImageUrl='imagens/btnAlterar.gif' OnClientClick='btnOkClick()' />  <asp:LinkButton runat='server' ID='dummyForPopup' Visible='false'/>  <ajaxToolKit:ModalPopupExtender runat='server' BehaviorID='btnOkPopupBehavior' ID='MPXtender' TargetControlID='dummyForPopup'  PopupControlID='pnlUpdateUserModal' BackgroundCssClass='modalBackground' OkControlID='btnCloseRequestUserUpdate' OnOkScript='userUpdReq_onOk()' />   function btnOkClick() {     if(validateAll())     {         var behavior = $find('btnOkPopupBehavior');         if (behavior)         {             behavior.show();         }         else         {             var lblOutput = $get('<%= lblOutput .ClientID %>');             lblOutput .innerText = 'Couldn't find popup';         }     } } 

previously I had the modal popup linked to the ok button, it was working pretty well. Now I need some validation before opening the popup, and this code is not working anylonger =/

  • 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. 2026-05-11T14:39:39+00:00Added an answer on May 11, 2026 at 2:39 pm

    1) Your dummy button has to be visible = true, otherwise the javascript doesn’t work properly. So set visible = true but disaply none with css:

     <asp:LinkButton runat='server'  ID='dummyForPopup' style  ='display:none' Visible='true' /> 

    2) lblOutput .innerText = ‘Couldn’t find popup’; is a javascript error. You need to change it to: ‘Couldn’t find popup’; (or use &apos;)

    3) OnClientClick=’btnOkClick()’ should really say: OnClientClick=’btnOkClick(); return false;’

    4) Look for any other javascript errors on your page because those will stop the popup from workign properly.

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

Sidebar

Related Questions

I followed this post http://neurochannels.blogspot.com/2010/05/how-to-run-r-code-in-matlab.html , to install R(D)Com server in order to call
I've followed several suggestions from other sites but to no avail. When I try
I followed several tutorial to make this work, but I can't get draggable items.
I followed these instructions from GitHub web page to create a first repo; Global
New to Symfony2. I followed several tutorials to install & configure Sonata with FOSUser
Followed this question about delayed_job and monit Its working on my development machine. But
I followed this tutorial . But whenever I try to log in with my
I followed this video tutorial for detecting memory leaks using Instruments with Xcode 4.3.2.
I followed this link to gzip my php driven website It's working fine but
I followed this tutorial to implement facebook into my application. All I want is

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.