locked
Multiple Modal Popup one after another RRS feed

  • Question

  • User1823070883 posted

    Hi all,

    What I am doing is implementing a server control which inherits ScriptControl so that I can attach jQuery to the assembly.

    I am implmenting a Notifications Control so that it checks against the database and see if there are any notifications to be displayed.  If there are it will display a Modal Popup using jQuery.

    The problem I am having is if there are more than one notifications to be displayed it renders all the notification panels on the page but I want it to display the first in the for loop, then once that has been dealt with, go onto the next and display that one.

    Can you suggest the best way to display a series of modal popups?

    Thanks,

    Mark 

    Wednesday, December 9, 2009 5:32 AM

Answers

  • User-16411453 posted

    with the ajax modalpopupextender, you write your popup code, then just call

    modalpopup.show()

    You can put whatever you want in the popup container.

    You can loop the show and hide commands with the close button.

    It's not an answer, but just a theory.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 18, 2009 7:10 PM

All replies

  • User-1635004338 posted

    Hi mhbrown,

    Never try it. Please have a look at this custom popup control, which may give you some idea:

    http://www.codeproject.com/KB/custom-controls/asppopup.aspx

    Thanks,

    Tuesday, December 15, 2009 9:49 PM
  • User-16411453 posted

    with the ajax modalpopupextender, you write your popup code, then just call

    modalpopup.show()

    You can put whatever you want in the popup container.

    You can loop the show and hide commands with the close button.

    It's not an answer, but just a theory.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 18, 2009 7:10 PM