コード例 #1
0
        protected void GenerateButton_Click(object sender, EventArgs e)
        {
            try
            {

                UserAccountBLL userAccount=new UserAccountBLL();
                userAccount.TransferAmount = Convert.ToDecimal(txtbxAmount.Text.Trim());
                bool status = userAccount.ReceivePaymentMoney(txtbxAmount.Text.Trim());
                if (status)
                {
                    string message = "Payment <span class='actionTopic'>Received</span> Successfully.";
                    MyAlertBox("var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/moneygerate.aspx\"; }; SuccessAlert(\"" + "Process Succeed" + "\", \"" + message + "\", callbackOk);");
                }

            }
            catch (Exception ex)
            {
                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
            }
            finally
            {
              //  MyAlertBox("MyOverlayStop();");
            }
        }