Exemple #1
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         try
         {
             objAdmin.DeleteParticipatingCity(Convert.ToInt32(hdn_CityId.Value));
             string popupScript = "alert('" + (string)GetLocalResourceObject("MsgDelete") + "');";//City deleted successfully.
             ClientScript.RegisterStartupScript(Page.GetType(), "script", popupScript, true);
             //grd_CityList.DataBind();
             _Bind();
         }
         catch (Exception ex)
         {
             //Helper.errorLog(ex, Server.MapPath(@"~/ImpTemp/Log.txt"));
         }
     }
 }