Morning floks,
I got those two methods :
protected
void WSInfo_ActivityAdded(object sender, ActivityEventArgs e){string recurrencePattern = e.Activity.RecurrencePattern;}
protected void WSInfo_ActivityUpdated(object sender, ActivityEventArgs e){string recurrencePattern = e.Activity.RecurrencePattern;}
When i add an activity, i can get its ReccurencePattern. But when updating it, the reccurencePattern is empty.
I need to store the reccurecepattern on the database. How can i get it when updating an appointment please?
I am getting empty string value for the RecurrencePattern property for both ActivityAdded and ActivityUpdated event handlers where I have used the WebScheduleGenericProvider object. Are you able to provide for me the code or small sample?
finally i've found the solution:
string recurrencePattern; if (string.IsNullOrEmpty(e.Activity.RecurrencePattern)) recurrencePattern = (string)(Session["ds"] as DataSet).Tables["Appointments"].Select("ID = " + e.Activity.Key)[0]["RecurrencePattern"]; else recurrencePattern = e.Activity.RecurrencePattern;
Great. I am glad it is working for you.