locked
ModalPopupExtender - will not close RRS feed

  • Question

  • User1606203997 posted

    Hi,

    I have added a modalpopupextender with 3 info labels and a ok button and a cancel button. 

    If I press cancel the modalpopup box dissapears - fine!

    When I press ok I do something write data to database etc. After closing the connection I would like to close the modal box also, but it doesn't happen. 

    I have tried :

    UpdatePanel1_ModalPopupExtender.Hide() this also works but my grid is not updated due to the following.

    When I try debugging I receive the following error. The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Users\Stephen\Downloads\ajaxcontroltoolkit-a497357d78ce\AjaxControlToolkit_a497357d78ce\Server\AjaxControlToolkit\ModalPopup\ModalPopupExtender.cs.

    Any idea how I can get this to work?

    Sunday, June 12, 2011 5:56 AM

Answers

  • User1309052532 posted
    Is your modalpopup in an update panel?
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 12, 2011 7:10 AM
  • User1606203997 posted

    Forget this issue. I deleted the modalpopup and instead used visible true or false.

    Thanks though

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 12, 2011 9:09 AM

All replies

  • User1309052532 posted
    Is your modalpopup in an update panel?
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 12, 2011 7:10 AM
  • User1606203997 posted

    Forget this issue. I deleted the modalpopup and instead used visible true or false.

    Thanks though

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 12, 2011 9:09 AM
  • User1309052532 posted

    Ok. But this is usualy a fairly common problem. and the solution is almost always having the close button in your update panel. If you place the close control outside the updatepanel. the close button should work.

    Sunday, June 12, 2011 9:26 AM
  • User1606203997 posted

    Thanks I will  try that

    Sunday, June 12, 2011 5:07 PM