TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
victor ebe
NA
68
0
How to handle 2 jobs in asp dotnet
Oct 8 2015 5:18 AM
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());
}
}
Reply
Answers (
1
)
getdate like Thu, 08 Oct 2015 07:25:04 GMT using Javascript
How to upload image on facebook using mvc 4?