protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                customerAccountsVo.AccountNum  = txtFolioNumber.Text;
                customerAccountsVo.AssetClass  = "MF";
                customerAccountsVo.CustomerId  = customerVo.CustomerId;
                customerAccountsVo.PortfolioId = portfolioId;
                if (rbtnNo.Checked)
                {
                    customerAccountsVo.IsJointHolding = 0;
                }
                else
                {
                    customerAccountsVo.IsJointHolding = 1;
                }
                if (ddlModeOfHolding.SelectedValue != "Select Mode of Holding")
                {
                    customerAccountsVo.ModeOfHolding = ddlModeOfHolding.SelectedItem.Value.ToString();
                }
                if (txtAccountDate.Text != "")
                {
                    customerAccountsVo.AccountOpeningDate = DateTime.Parse(txtAccountDate.Text.Trim());
                }
                customerAccountsVo.AMCCode = int.Parse(ddlProductAmc.SelectedItem.Value.ToString());
                accountId = customerAccountBo.CreateCustomerMFAccount(customerAccountsVo, userVo.UserId);

                customerAccountsVo.AccountId            = accountId;
                customerAccountAssociationVo.AccountId  = accountId;
                customerAccountAssociationVo.CustomerId = customerVo.CustomerId;
                foreach (GridViewRow gvr in this.gvNominees.Rows)
                {
                    if (((CheckBox)gvr.FindControl("chkId0")).Checked == true)
                    {
                        customerAccountAssociationVo.AssociationId   = int.Parse(gvNominees.DataKeys[gvr.RowIndex].Values[1].ToString());
                        customerAccountAssociationVo.AssociationType = "Nominee";
                        customerAccountBo.CreateMFAccountAssociation(customerAccountAssociationVo, userVo.UserId);
                    }
                }
                if (rbtnYes.Checked)
                {
                    foreach (GridViewRow gvr in this.gvJointHoldersList.Rows)
                    {
                        if (((CheckBox)gvr.FindControl("chkId")).Checked == true)
                        {
                            customerAccountAssociationVo.AssociationId   = int.Parse(gvJointHoldersList.DataKeys[gvr.RowIndex].Values[0].ToString());
                            customerAccountAssociationVo.AssociationType = "Joint Holder";
                            customerAccountBo.CreateMFAccountAssociation(customerAccountAssociationVo, userVo.UserId);
                        }
                    }
                }

                Session[SessionContents.CustomerMFAccount] = customerAccountsVo;
                Session[SessionContents.PortfolioId]       = ddlPortfolio.SelectedValue.ToString();

                if (Request.QueryString["FromPage"] == "MFManualSingleTran")
                {
                    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('MFManualSingleTran','?prevPage=CustomerMFAccountAdd');", true);
                }
                else
                {
                    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('CustomerMFFolioView','none');", true);
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "CustomerMFAccountAdd.ascx:rbtnYes_CheckedChanged()");
                object[] objects = new object[5];
                objects[0]   = customerAccountAssociationVo;
                objects[1]   = customerAccountsVo;
                objects[2]   = userVo;
                objects[3]   = customerVo;
                objects[4]   = portfolioId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }