Ejemplo n.º 1
0
    private void BannerKeywords()
    {
        var adListKeywordAdapter = new AdDatabaseDataSetTableAdapters.AdListTableAdapter();
        var adListKeyworDataTable = new AdDatabaseDataSet.AdListDataTable();
        adListKeywordAdapter.FillByKeyword(adListKeyworDataTable, "Test");

        if (adListKeyworDataTable.Rows.Count == 0)
        {
            BannerRotator1.KeywordFilter = "Home";
        }
    }
Ejemplo n.º 2
0
        private void BannerKeywords()
        {
            ///////////////////YOU WILL NEED TO ADJUST FOR TIME OVER HERE WHERE TIME START AND TIME FINISH//////////////////
            /// and Country and maybe even region ///

            // Dim AdKeyword as new adDatabaseDataSetTableAdapters
            var adListKeywordAdapter = new AdDatabaseDataSetTableAdapters.AdListTableAdapter();
            var adListKeyworDataTable = new AdDatabaseDataSet.AdListDataTable();
            adListKeywordAdapter.FillByKeyword(adListKeyworDataTable, "Test");

            if (adListKeyworDataTable.Rows.Count == 0)
            {
                BannerRotator1.KeywordFilter = "Home";
                BannerRotator2.KeywordFilter = "Doctor";
            }

            //Dim CustomerContractDescriptionAdapter As New ContractDataSetTableAdapters.ContractDescriptionTableAdapter
            //Dim CustomerContractDescriptionTable As New ContractDataSet.ContractDescriptionDataTable
            //CustomerContractDescriptionAdapter.FillContractDescription(CustomerContractDescriptionTable, _language.ToString())
            //BannerRotator1.KeywordFilter = "Home";
            //BannerRotator2.KeywordFilter = "Doctor";
        }