Dropdown on pages causes ModalPopup to flash visible

Last post 12-03-2009 7:07 AM by mrrogers. 6 replies.

Sort Posts:

  • Dropdown on pages causes ModalPopup to flash visible

    11-13-2009, 1:45 PM
    • Member
      39 point Member
    • mrrogers
    • Member since 05-21-2007, 10:04 AM
    • Posts 371

    I have a dropdown on my ASPX page that auto postbacks when re-selected.  I also have a ModalPopup on the same page inside of a DIV tag. When reselecting the dropdown box the ModalPopup flashes visible for a second during the postback. How can i stop this?

  • Re: Dropdown on pages causes ModalPopup to flash visible

    11-13-2009, 2:24 PM

    You can start by showing your HTML.

  • Re: Dropdown on pages causes ModalPopup to flash visible

    11-19-2009, 2:42 AM

    Hi mrrogers,

    Please add this code“style=’display:none’” into the ModalPopup’s PopupControl panel tag. Then, this panel would not flash when the page is reloaded.

    Best regards,

    Zhi-Qiang Ni

    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: Dropdown on pages causes ModalPopup to flash visible

    12-02-2009, 7:13 AM
    • Member
      39 point Member
    • mrrogers
    • Member since 05-21-2007, 10:04 AM
    • Posts 371

    That works; but I have the following style property that needs to be set in order for it to display properly:

    style="border: 1px solid black; background-color: white; padding: 10px; width: 300px;"


    How do I dynamically change this style property on my div when displaying the modal?


  • Re: Dropdown on pages causes ModalPopup to flash visible

    12-02-2009, 2:14 PM
    • Member
      39 point Member
    • mrrogers
    • Member since 05-21-2007, 10:04 AM
    • Posts 371

    Bump.

  • Re: Dropdown on pages causes ModalPopup to flash visible

    12-02-2009, 10:35 PM

    Hi mrrogers,

    The “display:none” property is only achieved when the page is loaded, the popup would be shown when you would like to show the ModalPopup by clicking the target button. The display property would be changed to “block” dynamically by the ModalPopupBehavior. So, please don’t worry about this setting, it can be mixed with your style.

    Best regards,

    Zhi-Qiang Ni

    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: Dropdown on pages causes ModalPopup to flash visible

    12-03-2009, 7:07 AM
    Answer
    • Member
      39 point Member
    • mrrogers
    • Member since 05-21-2007, 10:04 AM
    • Posts 371

    The last one solves the problem:


    http://forums.asp.net/p/1038752/1441312.aspx

Page 1 of 1 (7 items)