/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void DeleteClick(object sender, EventArgs e) { if (!string.IsNullOrEmpty(CurrentSurveyId.Value)) { // delete survey MetadataSurvey biz = new MetadataSurvey(); biz.Delete(int.Parse(CurrentSurveyId.Value)); // reload page to ensure polling fresh data Response.Redirect("Surveys_Edit.aspx?diseaseId=" + QueryDiseaseId, true); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void DeleteSurvey(object sender, EventArgs e) { if (!string.IsNullOrEmpty(SurveyList.Value)) { // delete metadata survey MetadataSurvey biz = new MetadataSurvey(); biz.Delete(int.Parse(SurveyList.Value)); // reload page to ensure polling fresh data Page.ClientScript.RegisterStartupScript(this.GetType(), "closeAndReloadSurveys", "closeAndReloadSurveys();", true); //Response.Redirect("AdminSurveyPage.aspx", true); } }