protected void btnCurrencySave_Click(object sender, EventArgs e) { Currency model = new Currency(); CurrenciesBL bl = new CurrenciesBL(); if (txtCurrency.Text.Trim() == string.Empty) { RadWindowManager1.RadAlert("Name is required", 330, 180, "realedge associates", "alertCallBackFn"); return; } else { model.Currancy = txtCurrency.Text.Trim(); if (!string.IsNullOrEmpty(hdnCurrency.Value)) { model.ID = Convert.ToInt32(hdnCurrency.Value); LogActivity("Currency Updated", "Currency has been updated", string.Empty); } else { LogActivity("Currency Created", "Currency has been created", string.Empty); } string str = bl.SaveCurrency(model); BindCurrencies(); if (str != "Entry of the same Name is already exists.") { hdnBorrower.Value = string.Empty; } RadWindowManager1.RadAlert(str, 330, 180, "realedge associates", "alertCallBackFn"); } }