protected void lnkBtnSubmit_Click(object sender, EventArgs e)
    {
        try
        {
            oCompanyInfo = new Entity.CompanyInfo();
            oCompanyInfo.StrCompanyEmail = txtCompanyEmail.Text.Trim();
            oCompanyInfo.StrPassword = txtPassword.Text.Trim();
            oCompanyInfo.StrCompanyName = txtCompanyName.Text.Trim();
            oCompanyInfo.StrCompanyPhone = txtPhone.Text.Trim();
            oCompanyInfo.StrCompanyFax = txtFax.Text.Trim();
        //DKB 04/09/12
        //Remove country from company reg page. I am adding in a hidden field for usa so the stored procs don't have to change
        //for country.
            oCompanyInfo.IntCountryId = Convert.ToInt32(hiddenCountry.Value);

        /*
        David K Bowers 04/09/12
        USA only so only display states
        for country.
            if (ddlCountry.SelectedValue == "1" || ddlCountry.SelectedValue == "2")//USA || Canada
            {
                oCompanyInfo.IntStateId = Convert.ToInt32(ddlState.SelectedValue);
                oCompanyInfo.StrStateName = ddlState.SelectedItem.Text;
            }
            else
            {
                oCompanyInfo.IntStateId = 0;
                oCompanyInfo.StrStateName = txtStateText.Text.Trim();
            }
        */

            oCompanyInfo.IntStateId = Convert.ToInt32(ddlState.SelectedValue);
            oCompanyInfo.StrStateName = ddlState.SelectedItem.Text;

        // David K. Bowers 04/10/12 added in zip code
            oCompanyInfo.StrZipCode = txtZipCode.Text.Trim();

            oCompanyInfo.StrCity = txtCity.Text.Trim();
            oCompanyInfo.StrCompanyAddress = txtAddress.Text.Trim();
        // David K. Bowers 04/10/12 changed default values of ChrIsPaid and ChrIsApproved from Y to N
            oCompanyInfo.ChrIsPaid = 'N';
            oCompanyInfo.ChrIsActive = 'N';
            oCompanyInfo.ChrIsApproved = 'Y';

            oCompanyInfo.DtCreatedDate = DateTime.Now;
            oCompanyInfo.DtModifiedDate = oCompanyInfo.DtCreatedDate;
            oCompanyInfo.ChrIsDeleted = 'N';
            oCompanyInfo.ChrCreatedBy = 'C';

            oCompanyManager = new BLL.CompanyManager();

            MembershipUser objUser = Membership.CreateUser(oCompanyInfo.StrCompanyEmail, oCompanyInfo.StrPassword, oCompanyInfo.StrCompanyEmail);
            int intRetVal = oCompanyManager.SaveCompanyDetails(oCompanyInfo);
            if (intRetVal > 0)
            {
                sendOutConfirmationEmail();
                string strpath = Request.PhysicalApplicationPath + AppConfig.GetCompanyRequestExcelUploadPath() + intRetVal.ToString();
                DirectoryInfo drInfo = new DirectoryInfo(strpath);
                if (!drInfo.Exists)
                {
                    drInfo.Create();
                }

                oCompanyManager = null;
                oCompanyInfo = null;
                if (Request.QueryString["src"] == null)
                {
                    lblError.Text = "<br /><br /><br /><br />Thanks for your information, TLW will contact you soon.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />";
                    trControls.Visible = false;
                    ClearControls();
                }
                else
                {
                    Response.Redirect(AppConfig.GetBaseSiteUrl() + "BackOffice/ManageCompany/ManageCompanies.aspx?m=ins", true);
                }
            }
            else
            {
                trControls.Visible = true;
                lblError.Text = "Company Email Id already exists.";
                return;
            }
        }
        catch
        {

            lblError.Text = "Company Email Id already exists.";
            // return;
        }

        oCompanyManager = null;
        oCompanyInfo = null;
    }