/// <summary> /// Handles the OnClick event of the cmdStartDate control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void cmdStartDate_OnClick(object sender, EventArgs e) { string contextValue = startDateContext.Value; string[] args = contextValue.Split(new Char[] { ':' }); string spaid = args[0]; DateTime startDate = ResolveDateTime(args[1]); ISalesProcesses salesProcess = Helpers.GetSalesProcess(this.EntityContext.EntityID.ToString()); salesProcess.StartStep(spaid, startDate); salesProcess.Save(); }