locked
how to show async message box multiple time

    Question

  • I am using messagebox in my index.html page and 2nd page xyz.html :

    var msgBox=new Windows.UI.Popups.MessageDialog(“Succeess”);
    msgBox.showAsync();

    But in my 2nd page I am getting Access Denied error, but if i am only using it in 2nd page then it is working fine. please tell me why I am getting this error on 2nd page! how can I solve this ? how can I use multiple times message box in all over project ?
    Tuesday, April 8, 2014 3:13 AM

Answers

  • Why are you trying to call a second MessageDialog when the user hasn't yet dismissed the first?

    Typically you would await the MessageDialog so the user can't continue on without dismissing the dialog.

    Thursday, April 10, 2014 2:00 AM
    Owner

All replies

  • You cannot show a second MessageDialog while the first is still open. Await the ShowAsync call and don't try to call another until it has finished.

    --Rob

    Tuesday, April 8, 2014 6:06 AM
    Owner
  • can i explicitly dispose/flush it??
    Tuesday, April 8, 2014 10:47 AM
  • Why are you trying to call a second MessageDialog when the user hasn't yet dismissed the first?

    Typically you would await the MessageDialog so the user can't continue on without dismissing the dialog.

    Thursday, April 10, 2014 2:00 AM
    Owner