/// <summary> /// Raises the <see cref="SurveyCompleted"/> event. /// </summary> /// <param name="e">The <see cref="Engage.Survey.UI.SavedEventArgs"/> instance containing the event data.</param> protected virtual void OnSurveyCompleted(SavedEventArgs e) { if (this.SurveyCompleted != null) { this.SurveyCompleted(this, e); } }
/// <summary> /// Handles the <see cref="Engage.Survey.UI.SurveyControl.SurveyCompleted"/> event of the <see cref="SurveyControl"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SavedEventArgs"/> instance containing the event data.</param> private void SurveyControl_SurveyCompleted(object sender, SavedEventArgs e) { this.Response.SetCookie(new HttpCookie(this.SurveyTakenCookieName, e.ResponseHeaderId.ToString(CultureInfo.InvariantCulture))); this.SendNotifications(e.ResponseHeaderId); }