ModalPopup from codebehind, inconsistent behavior onClick

Posted in dotnet, vb, vb.net | 17 Comments »

First post bear with me please:

I have a simple form with a list of linkbuttons, each fires the same onclick event which sets an indicator image.  I have a dummy button with style="display:none" which I have set as the TargetControlID of the modal.

onClick event from the imagebutton, the modal is shown via modal.Show().  The cancel button inside the modalpopup fires an event which turns off the indicator image and hides the modal via modal.Hide(). 

The events fire perfectly, it's very simple!  Although after doing some testing I noticed the modalpopup is not presented after the 6-10th cycle of clicking the open event, then clicking cancel.  The grey background appears but it is behind the main panel and the modal is either presented behind this or is just simply not displaying. 

I spent hours researching various methods, implemented the CancelControlID to see if it was somehow tied to my call of modal.Hide() that fails.

This occurs with or without an updatepanel on the page so I have basically eliminated everything but these two events!  Please help

Similar:

  1. Another modalpopup question So – I looked at this post http://forums.asp.net/t/1576662.aspx I thought it was what I needed but I can't seem to get it to work… This is what...
  2. ModalPopupExtender preventing codebehind event from firing? Here is what I'm trying to do: Click a button on my page, which in turn makes (2) things happen: Display a ModalPopup to prevent...
  3. Button click not firing in modalpopup Hi I have a submit button and when clicked it raises a modal popup code below: It never seems to fire the on click event though: <asp:Button...
  4. Dropdown of Office Communicator Presence Indicator is not displayed The onclick event of the image (that shoud show the OC dropdown) is not working in this scenario: The page has OC precense indicator then...
  5. How to perform server-side event and close modalPopup with 1 button click? The modalPopup form allows you to specify an "OK" button.  The button closes the form when it is clicked.  You can specify a server-side event...

17 Responses to “ModalPopup from codebehind, inconsistent behavior onClick”

  1. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  2. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  3. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  4. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  5. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  6. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  7. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  8. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  9. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  10. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  11. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  12. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  13. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  14. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  15. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  16. [...] ModalPopup from codebehind, inconsistent behavior onClick | The … [...]

  17. [...] ModalPopup from codebehind, inconsistent behavior onClick [...]

Leave a Reply