protected void Page_Load(object sender, EventArgs e)
        {
            SetDisplayControls();

            if (!IsPostBack)
            {
                if (RegistrationFlow != null)
                {
                    RegistrationFlow.SourceCodeId       = 0;
                    RegistrationFlow.SourceCode         = string.Empty;
                    RegistrationFlow.SourceCodeAmount   = 0;
                    RegistrationFlow.TestIds            = null;
                    RegistrationFlow.PackageId          = 0;
                    RegistrationFlow.AppointmentSlotIds = null;
                    RegistrationFlow.ShippingDetailId   = 0;
                    RegistrationFlow.ShippingOptionId   = 0;
                    RegistrationFlow.ShippingAddressId  = 0;
                    RegistrationFlow.ProductId          = 0;
                }

                FillSecurityQuestions();
                BindDropDownControls();
                if (CustomerType == CustomerType.New && CurrentAction != null && CurrentAction.Equals("Back"))
                {
                    isPageOpenedByBackClick.Value         = "true";
                    MarketingSourceDropDown.SelectedValue = CurrentCustomer.MarketingSource;
                }

                if (CurrentAction != null || CurrentProspectCustomer == null)
                {
                    SetCustomerDataToControls();
                    LogAudit(ModelType.View, customerLogEditModel, CustomerId);
                }
                else
                {
                    SetProspectCustomerDataToControls();
                    LogAudit(ModelType.View, prospectCustomerLogEditModel, CustomerId);
                }
                SetJavaScriptEvents();

                var callCenterDal    = new CallCenterDAL();
                var listScriptType   = callCenterDal.GetScriptType("Above 40", 2);
                var objAbove40Script = callCenterDal.GetScript(listScriptType[0].ScriptTypeID.ToString(), 4);
                if (objAbove40Script.Count > 0)
                {
                    bubbleContent.InnerText = objAbove40Script[0].ScriptText;
                }

                ViewState["RefferedUrl"] = Request.UrlReferrer.PathAndQuery;


                InsuranceIdContainer.Style.Add(HtmlTextWriterStyle.Display, "none");
                InsuranceIdRequiredHiddenField.Value = Boolean.FalseString;
                var settings = IoC.Resolve <ISettings>();
                if (settings.CaptureInsuranceId)
                {
                    if (EventData != null && EventData.CaptureInsuranceId)
                    {
                        InsuranceIdContainer.Style.Add(HtmlTextWriterStyle.Display, "block");
                        if (EventData.InsuranceIdRequired)
                        {
                            InsuranceIdRequiredHiddenField.Value = Boolean.TrueString;
                        }
                    }
                }
                SsnContainer.Style.Add(HtmlTextWriterStyle.Display, "none");
                if (EventId > 0)
                {
                    var captureSsn = EventRepository.CaptureSsn(EventId);
                    if (captureSsn)
                    {
                        SsnContainer.Style.Add(HtmlTextWriterStyle.Display, "block");
                    }
                }
            }
            HideUserCredentialPanel();

            var toolTipRepository = IoC.Resolve <IToolTipRepository>();
            var insuranceIdLabel  = toolTipRepository.GetToolTipContentByTag(ToolTipType.InsuranceIdLabel);

            insuranceIdLabel = string.IsNullOrEmpty(insuranceIdLabel) ? "Insurance Id" : (insuranceIdLabel);

            if (AccountByEventId != null && !string.IsNullOrEmpty(AccountByEventId.MemberIdLabel))
            {
                insuranceIdLabel = AccountByEventId.MemberIdLabel;
            }

            InsuranceIdLabel.InnerText = insuranceIdLabel;

            MedicareIdRequiredHiddenField.Value = Boolean.FalseString;

            if (EventId <= 0)
            {
                return;
            }

            var eventTestRepository = IoC.Resolve <EventTestRepository>();

            var eventTestList = eventTestRepository.GetTestsForEvent(EventId);

            MedicareIdRequiredHiddenField.Value = eventTestList != null && eventTestList.Any(x => x.TestId == (long)TestType.AWV) ? Boolean.TrueString : Boolean.FalseString;
        }