Issues with ModalPopupExtender

Last post 12-19-2008 1:26 AM by Zhi-Qiang Ni - MSFT. 2 replies.

Sort Posts:

  • Issues with ModalPopupExtender

    12-17-2008, 2:17 PM
    • Member
      401 point Member
    • helixpoint
    • Member since 08-05-2003, 9:30 AM
    • Posts 447

    I get a Object required generic error in IE

     

    Using Firebug in Firefox gave me this

    this._foregroundElement is null
    initialize()()ScriptRe...000000000 (line 22)
    Sys$Component$endUpdate()ScriptRe...270870000 (line 3084)
    (?)()()pantyOfT...Week.aspx (line 283)
    Sys$_Application$_doInitialize()ScriptRe...270870000 (line 4852)
    (?)()()ScriptRe...270870000 (line 61)
    this._foregroundElement.parentNode.appen...s._showHandler);if (this._OkControlID) {
    Dave
    Helixpoint LLC
    Harrisburg Web Developer
  • Re: Issues with ModalPopupExtender

    12-17-2008, 2:41 PM
    • Participant
      1,293 point Participant
    • bebandit
    • Member since 04-04-2005, 8:16 PM
    • Posts 301

    Make sure you have the CancelControlID="btnCancel" and OKControlID = "btnOK" in the mpe control. Please post some code if this doesn't work.

    MCPD - Web Developer
  • Re: Issues with ModalPopupExtender

    12-19-2008, 1:26 AM
    Answer
    Hi helixpoint,

    What my thought of the issue is you have set the DropShadow property with true and not set the BackgroundCssClass property’s value.

    Please modify your ModalPopupExtender’s tag as this: 
            <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server"
                TargetControlID="LinkButton1"
                PopupControlID="Panel1"
                BackgroundCssClass="modalBackground"
                OkControlID="OkButton"
                OnOkScript="onOk()"
                CancelControlID="CancelButton"
                DropShadow="true"
                PopupDragHandleControlID="Panel3" />
    
        <style type="text/css">
            .modalBackground
            {
                background-color: Gray;
                filter: alpha(opacity=70);
                opacity: 0.7;
            }
        </style>
    Please let me know the result.

    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.
Page 1 of 1 (3 items)