protected void lnkSave_Click(object sender, EventArgs e) { AdministrationDAC dac = new AdministrationDAC(); if (Mode == UIMode.Create) { var dr = GetData(); dac.EditEmailer(dr); Refresh(); } else if (Mode == UIMode.Edit) { var dr = GetData(); dac.EditEmailer(dr); Refresh(); } lblNotif.Visible = true; lblNotif.Text = "Mailer Setting Saved"; }