コード例 #1
0
        private String GetCountyMSA(String market)
        {
            var result        = String.Empty;
            var marketSeleted = ddlMarketArea.SelectedValue;
            var objAdmin      = new clsAdmin();

            switch (marketSeleted)
            {
            case "county":
                result = objAdmin.GetMSAForCounty(ddlState.SelectedValue, market);
                break;

            case "association":
                result = objAdmin.GetCountyForAssociation(ddlState.SelectedValue, market);
                break;

            case "msa":
                result = objAdmin.GetCountyForMSA(ddlState.SelectedValue, market);
                break;
            }

            return(result);
        }