/// <summary> /// Handles the Click event of the Delete Button 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 DeleteBtn_Click(object sender, System.EventArgs e) { try { UoW.BeginTransaction(); TopicBo.Delete(this.CurrentTopic); UoW.CommitTransaction(); Response.Redirect(this.HomeURL, false); } catch (System.Exception exc) { UoW.RollbackTransaction(); Exceptions.LogException(exc); this.Messages.ShowError(Localization.GetString("ErrorDeletingTopic", this.LocalResourceFile)); } }