Hi my current project is calendar schedule. If i move time slot box in calendar, then called DayPilotCalendarWeek_EventMove and Time slate is moved successfully without Email functionality. But If i called Email Process it take some mints for mail. How to handle this Jobs???. I refer threading concept But I cannot Understand.
**Requirement is**
1. Job 1 : DayPilotCalendarWeek.Update(); // must done before sending Email.
2. After Update calender, Email functionality must work.
**MY Code is :**
Same Function two action
1.DayPilotCalendarWeek.Update();
2.SendEmail();
protected void DayPilotCalendarWeek_EventMove (object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
{
try
{
CommonCls com = new CommonCls();
//-----------------------Job 1---------------------
DayPilotCalendarWeek.DataSource = Moving(e.Id, e.OldStart.ToString(), e.NewStart.ToString());
DayPilotCalendarWeek.DataBind();
DayPilotCalendarWeek.Update();
//-----------------Job 2------------------------
SendEmail();
}
catch (Exception ex)
{
logger.Error(ex.ToString());
}
}