Ejemplo n.º 1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            if (hddID.Value == "")
            {
                return;
            }

            if (ZoneDB.Delete(ConvertUtility.ToInt32(hddID.Value)))
            {
                lblStatusUpdate.Text = AppEnv.NoticeDelete(lang, true);
                hddID.Value          = "";
                btnUpdate.Enabled    = false;
                btnDelete.Enabled    = false;
                Reset();
            }
            else
            {
                lblStatusUpdate.Text = AppEnv.NoticeDelete(lang, false);
            }

            zoneSelected = 0;

            LoadZones();
        }