protected void Page_Load( object sender, EventArgs e )
        {
            dcCommonDataContext DC = new dcCommonDataContext();
            if ( !Page.IsPostBack )
            {
                int cCountry = DC.spSelAllCountry().Count();
                foreach ( var oCountry in DC.spSelAllCountry() )
                {
                    _ddlCountry.Items.Add( new ListItem()
                    {
                        Text = oCountry.CountryName,
                        Value = oCountry.CountryID.ToString(),
                        Selected = cCountry == 1
                    } );
                }
                UpdateRegion();
                //int cScopeType = DC.spSelAllScopeType().Count();
                //foreach ( var oScopeType in DC.spSelAllScopeType() )
                //{
                //    _ddlScopeType.Items.Add(new ListItem()
                //    {
                //        Text = oScopeType.ScopeType_Name,
                //        Value = oScopeType.ScopeType_ID.ToString(),
                //        Selected = cScopeType == 1
                //    });
                //}
                //int cHKT = DC.spSelAllHowKnowType().Count();
                //foreach ( var oHKT in DC.spSelAllHowKnowType() )
                //{
                //    _ddlHKT.Items.Add( new ListItem()
                //    {
                //        Text = oHKT.HowKnowType_Name,
                //        Value = oHKT.HowKnowType_ID.ToString(),
                //        Selected = cHKT == 1
                //    } );
                //}
                //ManagerSiteContext MSC = (ManagerSiteContext)SiteContext.Current;
                //foreach ( var store in AcctgRefCatalog.RmsStores.Items.Where( s => s.IsRetail ) )
                //{
                //    _ddlRmsStores.Items.Add(new ListItem()
                //    {
                //        Text = store.FullInfo,
                //        Value = store.StoreId,
                //        Selected = MSC.ManagerInfo.StoreId == store.StoreId
                //    });
                //}
            }
            else
            {
                //spSelBankInfoByBICResult bankinfo = DC.spSelBankInfoByBIC( _txtBankBIC.Text ).FirstOrDefault();
                //if ( bankinfo == null )
                {

                }
            }
            UpdateVisiblePH( Controls );
        }
        protected void Page_Load( object sender, EventArgs e )
        {
            //lCFNDSAggentYes.Visible = NDSAggent;
            //lCFNDSAggentNo.Visible = !NDSAggent;

            dcCommonDataContext DC = new dcCommonDataContext();
            if ( !Page.IsPostBack )
            {
                CaptureImage.RefreshCapture();
                int cCountry = DC.spSelAllCountry().Count();
                foreach ( var oCountry in DC.spSelAllCountry() )
                {
                    _ddlCountry.Items.Add( new ListItem()
                    {
                        Text = oCountry.CountryName,
                        Value = oCountry.CountryID.ToString(),
                        Selected = cCountry == 1
                    } );
                }
                //UpdateRegion();
                //int cScopeType = DC.spSelAllScopeType().Count();
                //foreach ( var oScopeType in DC.spSelAllScopeType() )
                //{
                //    _ddlScopeType.Items.Add( new ListItem()
                //    {
                //        Text = oScopeType.ScopeType_Name,
                //        Value = oScopeType.ScopeType_ID.ToString(),
                //        Selected = cScopeType == 1
                //    } );
                //}
                //int cHKT = DC.spSelAllHowKnowType().Count();
                //foreach ( var oHKT in DC.spSelAllHowKnowType() )
                //{
                //    _ddlHKT.Items.Add( new ListItem()
                //    {
                //        Text = oHKT.HowKnowType_Name,
                //        Value = oHKT.HowKnowType_ID.ToString(),
                //        Selected = cHKT == 1
                //    } );
                //}
                //foreach ( var store in AcctgRefCatalog.RmsStores.Items.Where( s => s.IsRetail ) )
                //{
                //    _ddlRmsStores.Items.Add( new ListItem()
                //    {
                //        Text = store.FullInfo,
                //        Value = store.StoreId
                //    } );
                //}
            }
            //else
            //{
            //    spSelBankInfoByBICResult bankinfo = DC.spSelBankInfoByBIC( _txtBankBIC.Text ).FirstOrDefault();
            //    if ( bankinfo == null )
            //    {
            //        _rfvBankValidator.IsValid = false;
            //    }
            //}
            UpdateVisiblePH( _fillProfileWizard.Controls );

            //if (AcctgRefCatalog.RmsFranches[SiteContext.Current.InternalFranchName].isLite)
            //{
            //    TextItemControl3.TextItemID = SiteContext.Current.InternalFranchName+".ContractOffer.Opt";
            //    TextItemControl10.TextItemID = SiteContext.Current.InternalFranchName + ".ContractOffer.Rozn";
            //}

            DC.Dispose();
        }