protected void btnUpdateSetting_Click(object sender, EventArgs e) { SettingEntity setting = new SettingEntity(); setting.MaxTarget = txtMonthlyTarget.Text; setting.AdminEmails = txtEmails.Text; setting.ProcessedEmails = txtProcEmail.Text; setting.VoidedEmails = txtVoidedEmail.Text; setting.RefundEmails = txtRefundEmail.Text; setting.Mob_login_text1 = txtMobLog1.Text; setting.Mob_login_text2 = txtMobLog2.Text; bool isEdited = settingHelper.AddTarget(setting); if (isEdited) { Response.Write("<script>alert('Setting updated Successfully.');</script>"); this.BindSettings(); } else { Response.Write("<script>alert('Some error occured.');</script>"); } }