locked
ModalPopup do something ? RRS feed

  • Question

  • User622205320 posted

    Can I start process(Process.Start()) after modalpopup.show() ?

    I find it will do the process that I want do after modalpopup.hide(), Can I change it ?

    All code behind

    Or Can I call the process method (Server Side, just copy file) from javascript ?

    Tuesday, October 29, 2013 3:50 AM

Answers

  • User-933407369 posted

    hi my407sw,

    You need to put you status monitoring loop in a separate thread so that the UI thread can remain responsive.

    There are several ways you can do this, but one easy place to start is with the BackgroundWorker class.

    Hope it helps you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 31, 2013 4:50 AM
  • User555306248 posted

    In order to execute javascript when the modalpopup is showing use the following:

    $find('mpeBehaviorID').add_showing(
        function()
        {
           alert("Modal popup will be showing");
        }
    );

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 1, 2013 12:09 AM

All replies

  • User-376018714 posted

    provide more information of your problem. without understading the context and scenario its not possible to gve an answer.

    explain what exactly are you tryig to do ???

    Tuesday, October 29, 2013 2:06 PM
  • User-933407369 posted

    hi my407sw,

    You need to put you status monitoring loop in a separate thread so that the UI thread can remain responsive.

    There are several ways you can do this, but one easy place to start is with the BackgroundWorker class.

    Hope it helps you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 31, 2013 4:50 AM
  • User555306248 posted

    In order to execute javascript when the modalpopup is showing use the following:

    $find('mpeBehaviorID').add_showing(
        function()
        {
           alert("Modal popup will be showing");
        }
    );

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 1, 2013 12:09 AM