title: How to trigger two function in Asp.net
body: <p>Hi how to trigger function in c#. If i click save Button, data is stored to SQL and exit from code behind. After that send email function will trigger.  Can you give some example? </p>
  
  <p><strong>I want to exit after job 1 is done.. But job 2 is continue in code behind. Because Send Email functionality take some time...</strong></p>
  
  <p>//Coding is.. </p>
  
  <p>protected void DayPilot_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
  {</p>
  
  <p>try</p>
  
  <pre><code>{ 
  
      //**Job 1:**
      DayPilotCalendarWeek.DataSource = Moving(e.Id);
      DayPilotCalendarWeek.DataBind();
      DayPilotCalendarWeek.Update();
      //**Job 2** 
      SendEmail();
  }
  catch (Exception ex)
  {
  
  }
  </code></pre>
  
  <p>}</p>