protected void btnDelete_Click(object sender, EventArgs e) { try { if (Page.IsValid) { try { BCAppAdmin appAdmin = new BCAppAdmin(); appAdmin.DeleteFAQ(Convert.ToInt32(hdnFAQId.Value)); string msg = (string)GetLocalResourceObject("FAQDeleted"); string popupScript = "alert('" + msg + "');"; ScriptManager.RegisterStartupScript(Page, this.GetType(), "script", popupScript, true); _BindFAQ(); } catch (Exception ex) { Helper.Log(ex.Message, "Delete FAQ"); //errorLog(ex, Server.MapPath(@"~/ImpTemp/Log.txt")); } } } catch (Exception ex) { } }