How to save Scdeduler event with user id ?

Hi,

Events I want to save the database with user id. I’m using C#.Net.

How do I add a user id here ??

  public override IdhtmlxConnector CreateConnector(HttpContext context)
    {
        return new dhtmlxSchedulerConnector(
              "Events"
            , "EventID"
            , dhtmlxDatabaseAdapterType.SqlServer2005
            , ConfigurationManager.ConnectionStrings["SamplesDatabase"].ConnectionString
            , "FromDate"
            , "ToDate"
            , "Subject as text, Details as details, Tags"
        );

    }

You can use a code, which is similar to next, to add a new field for update operations

dhtmlxSchedulerConnector connector = new dhtmlxSchedulerConnector(...); connector.BeforeUpdate += new EventHandler<DataActionProcessingEventArgs>(connector_BeforeUpdate); ........ void connector_BeforeUpdate(object sender, DataActionProcessingEventArgs e) { e.DataAction.Data.Add("user_id", Tools.ConvertToString(Session["UserID"])); }

I’ll try, thanks