protected void btnDepositOk_OnClick(object sender, EventArgs e) { UserAccountBLL accountBll = new UserAccountBLL(); UserBLL userBll = new UserBLL(); bool status = false; accountBll.Amount = txtbxDepositAmmount.Text.Trim(); userBll.UserId = (string)LumexSessionManager.Get("ActiveUserId"); if (userBll.varifypin(userBll.UserId, txtbxDepositPin.Text)) { if (Convert.ToDecimal(accountBll.Amount) <= Convert.ToDecimal(lvlDeposit.Text)) { status = accountBll.UpdateUserIncomeBalanceFromDeposit((string) LumexSessionManager.Get("ActiveUserId"), accountBll.Amount); if (status) { string message = " <span class='actionTopic'>" + " Income Balance Updated Successfully " + "</span>."; MyAlertBox( "var callbackOk = function () { window.location = \"/a/account/myaccount.aspx\"; }; SuccessAlert(\"" + "Process Succeed" + "\", \"" + message + "\", callbackOk);"); } else { string message = " <span class='actionTopic'>" + " Transfer Failed " + "</span>."; MyAlertBox( "var callbackOk = function () { window.location = \"/\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } } else { string message = " <span class='actionTopic'>" + "Sorry You don't have sufficent Balance." + "</span>."; MyAlertBox( "var callbackOk = function () { window.location = \"/\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } } else { string message = " <span class='actionTopic'>" + " Pin is Incorrect " + "</span>."; MyAlertBox( "var callbackOk = function () { window.location = \"/\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } }