Modal popup - Js error

Last post 03-27-2008 10:58 AM by Jonathan Shen – MSFT. 1 replies.

Sort Posts:

  • Modal popup - Js error

    03-21-2008, 10:27 AM
    • Loading...
    • vijay_.net
    • Joined on 03-04-2008, 10:57 PM
    • Tamilnadu,India
    • Posts 21

    I have used more than two modalpopup in my form.

    Its shows the below error in IE7.

     

    Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.
    Parameter name: element

    How can i control this probs..

     

    Regards,

    viji 

  • Re: Modal popup - Js error

    03-27-2008, 10:58 AM
    Answer

    Hi Viji,

    Please make sure that your ModalPopupExtender's PopupControlID,TargetControlID,CancelControlID,OKControlID (the controls you tied to these properties) are should be in the same container. (CancelControlID and OKControlID are not necessary ) Otherwise, ModalPopupExtender won't find it.  For example, if Button1 is the TargetControlID and it is inside a TabContainer.  It won't work in this situation.

    Best regards,

    Jonathan

    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. This can be beneficial to other community members reading the thread.
Page 1 of 1 (2 items)