protected void lnkBtnSubmit_Click(object sender, EventArgs e)
    {
        oCompanyInfo = new Entity.CompanyInfo();
        oCompanyInfo.IntCompanyId = Convert.ToInt32(Request.QueryString["id"]);
        oCompanyInfo.StrCompanyName = txtCompanyName.Text.Trim();
        oCompanyInfo.StrCompanyPhone = txtPhone.Text.Trim();
        oCompanyInfo.StrCompanyFax = txtFax.Text.Trim();
        oCompanyInfo.IntCountryId = Convert.ToInt32(ddlCountry.SelectedValue);
        oCompanyInfo.StrStateName = txtStateText.Text.Trim();

        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.StrCity = txtCity.Text.Trim();
        oCompanyInfo.StrCompanyAddress = txtAddress.Text.Trim();

        oCompanyInfo.ChrIsActive = Convert.ToChar(rblStatus.SelectedValue);
        oCompanyInfo.ChrIsApproved = Convert.ToChar(rblApproved.SelectedValue);
        oCompanyInfo.DtModifiedDate = DateTime.Now;

        oCompanyManager = new BLL.CompanyManager();
        if (oCompanyManager.UpdateCompanyDetails(oCompanyInfo) > 0)
        {
            oCompanyInfo = null;
            oCompanyManager = null;

            if (AppLib.GetCurrentUserType().ToLower().ToString().Equals("c"))
            {
                lblError.Text = "Information has been updated successfully.";
            }
            else
            {
                Response.Redirect(AppConfig.GetBaseSiteUrl() + "BackOffice/ManageCompany/ManageCompanies.aspx?m=up", true);
            }
        }
        else
        {
            lblError.Text = "Company Email already exists.";

            return;
        }
    }