Processing some .net function after javascript RRS feed

  • Question

  • Hi,

    In the .net, a button btnOrderMeal will do some ordering meals job.
    Clicking on the btnOrderMeal, if it successfully processes an OrderMeal() function, 
    then do a ListOrderdMeal() function, and a javascript message " Meal OK " will pop up.

    protected void btnOrderMeal_Click(object sender, EventArgs e)
      if OrderMeal() { MessageBoxFunction("Meal OK"); }

    protecte void ListOrderdMeal()
    // calling all ordered meals record from database

    How do I let the javascript message pop up first on the screen, and then do the ListOrderMeal() job later?

    Thanks for help.

    • Moved by 宝宝徐 Tuesday, December 19, 2017 6:44 AM
    Thursday, December 14, 2017 3:28 AM

All replies