protected void btnDelete_Click(object sender, EventArgs e) { if (Page.IsValid) { try { int res = objAdmin.DeleteQuiz(Convert.ToInt32(hdnQuizId.Value)); if (res > 0) { string popupScript = "alert('" + (string)GetLocalResourceObject("MsgQzDelete") + "');";//Quiz deleted successfully. ClientScript.RegisterStartupScript(Page.GetType(), "script", popupScript, true); //grd_QuizList.DataBind(); _Bind(); ddl_City.DataBind(); ddl_City.Items.Insert(0, new ListItem((string)GetLocalResourceObject("MsgSelectCity"), "0"));//Select City } } catch (Exception ex) { } } }