How can i create a custom WebSchedulerEventBase

1 reply. Last post: July 20, 2010 10:37 AM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
zhao qingMember

hi

My code is written so:

WebSchedulerResource res = ws1.Resources.CreateNewItem();

WebSchedulerEventBase ent = res.RecurringEvents.CreateNewItem();

ent.Subject = dt.Rows[x][dt.Columns[0].ColumnName].ToString();
ent.Description = dt.Rows[x][dt.Columns[1].ColumnName].ToString();
ent.StartTime =Convert.ToDateTime(dt.Rows[x][dt.Columns[2].ColumnName].ToString());
ent.EndTime = Convert.ToDateTime(dt.Rows[x][dt.Columns[3].ColumnName].ToString());
ent.ResourceID = Convert.ToInt32(dt.Rows[x][dt.Columns[4].ColumnName].ToString());
ent.EventID = Convert.ToInt32(dt.Rows[x][dt.Columns[5].ColumnName].ToString());
ent.CategoryID = (dt.Rows[x][dt.Columns[7].ColumnName].ToString());
res.RecurringEvents.Add(ent);
 res.Events.Add(ent);

 ws1.Resources.Add(res);

Why only show WebSchedulerResource  but not show WebSchedulerEventBase

I need to show results, see Annex

thanks

1 attachment
All times are GMT -5. The time now is 11:41 PM.
Previous Next