scheduler for different user in asp.net?

hi there…sorry for bother again…

to show scheduler for different user in asp.net?
is that possible?
i saw a similar post in here http://forum.dhtmlx.com/viewtopic.php?f=6&t=12921&hilit=get+userID
but it’s in php…how can i do that in asp.net? am i suppose to edit my Schedulerconnector file?

i want to show my scheduler based on my UserID and insert/delete and update it based on that UserID.

i’m really not familiar with php but i kind of understand a bit how it’s can be done…but how it is in asp.net?

hope someone could share me some light here…

Do you mean that each user must have separate set of events, or they will share events ?
The component is mostly client side, so all existing php samples can be easily ported to other platforms.

hi, if each user must have his own set of events connector should look like this

[code] public override IdhtmlxConnector CreateConnector(HttpContext context)
{
int UserID = 0;
if (context.Request.QueryString[“UserID”] != null)
UserID = Convert.ToInt32(context.Request.QueryString[“UserID”]);
dhtmlxSchedulerConnector connector = new dhtmlxSchedulerConnector(

, “text, UserID, rec_type, event_pid, event_length, event_type”
);

connector.Request.Rules.Add(new FieldRule((TableField)"UserID", Operator.Equals, UserID));//get by UserID

connector.BeforeDataActionProcessing += new EventHandler<DataActionProcessingEventArgs>(connector_BeforeDataActionProcessing);

return connector;

}
void connector_BeforeDataActionProcessing(object sender, DataActionProcessingEventArgs e)
{
if ((e.DataAction.ActionType == ActionType.Inserted || e.DataAction.ActionType == ActionType.Updated) && !e.DataAction.Data.ContainsKey((TableField)“UserID”))
{
int UserID = 0;
if (HttpContext.Current.Request.QueryString[“UserID”] != null)
UserID = Convert.ToInt32(HttpContext.Current.Request.QueryString[“UserID”]);
e.DataAction.Data.Add((TableField)“UserID”, UserID.ToString());//add UserID to new or updated field
}
}[/code]

thank you so much Stanislav & Aliaksandr, you save my life! :stuck_out_tongue:
this code really help me a lot. see things clearly now
really appreciate your help guys.thanks guys for shows me the way.