protected void EditLinkButton_OnClick(object sender, EventArgs e)
        {
            try
            {
                UserAccountBLL user = new UserAccountBLL();
                LinkButton lnkBtn = (LinkButton)sender;
                GridViewRow row = (GridViewRow)lnkBtn.NamingContainer;
                string serial = GridViewPaymentMethod.Rows[row.RowIndex].Cells[0].Text.ToString();
                LumexSessionManager.Add("SerialForUpdate", lblSerial.Text);
                DataTable dt = user.GetPaymentMethodInfoBySerial(serial);
                if (dt.Rows.Count > 0)
                {
                    if (dt.Rows[0]["GatewayType"].ToString() == "0")
                    {
                        divCard.Visible = false;
                        divCardExpireDate.Visible = false;
                        divCardOwner.Visible = false;
                        divOnlineEmail.Visible = false;
                        divOwnerName.Visible = false;
                        divBankName.Visible = true;
                        divBank.Visible = true;
                        divSwift.Visible = true;
                        txtbxBankName.Text = dt.Rows[0]["BankName"].ToString();
                        txtbxAccountNo.Text = dt.Rows[0]["BankAccount"].ToString();
                        txtbxSwiftCode.Text = dt.Rows[0]["SwiftCode"].ToString();
                        btnSubmit.Text = "Update";
                        ddlType.SelectedValue = "0";
                    }
                    else if (dt.Rows[0]["GatewayType"].ToString() == "1")
                    {
                        divCard.Visible = true;
                        divCardExpireDate.Visible = true;
                        divCardOwner.Visible = true;
                        divOnlineEmail.Visible = false;
                        divOwnerName.Visible = false;
                        divBankName.Visible = false;
                        divBank.Visible = false;
                        divSwift.Visible = false;
                        txtbxCardOwnerName.Text = dt.Rows[0]["CardWoner"].ToString();
                        txtbxCardNumber.Text = dt.Rows[0]["CardNo"].ToString();
                        txtbxCardExpireDate.Text = dt.Rows[0]["ExpireDate"].ToString();
                        btnSubmit.Text = "Update";
                        ddlType.SelectedValue = "1";
                    }
                    else if (dt.Rows[0]["GatewayType"].ToString() == "2")
                    {
                        divCard.Visible = false;
                        divCardExpireDate.Visible = false;
                        divCardOwner.Visible = false;
                        divOnlineEmail.Visible = true;
                        divOwnerName.Visible = true;
                        divBankName.Visible = false;
                        divBank.Visible = false;
                        divSwift.Visible = false;
                        txtbxEmail.Text = dt.Rows[0]["GatewayEmail"].ToString();
                        txtbxOwnerName.Text = dt.Rows[0]["GatewayOwner"].ToString();
                        btnSubmit.Text = "Update";
                        ddlType.SelectedValue = "2";

                    }
                }
            }
            catch (Exception)
            {

                throw;
            }
        }