コード例 #1
0
 void GetFeaturedProperties()
 {
     try
     {
         DataTable dtIDs = new DataTable();
         dtIDs = clsobj.GetAllFeturedIDs();
         String result = dtIDs.AsEnumerable()
                         .Select(row => row["MLSID"].ToString())
                         .Aggregate((s1, s2) => String.Concat(s1, "," + s2));
         Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
         DataTable dt = mlsClient.FeatureListing(result);
         dlFeatured.DataSource = dt;
         dlFeatured.DataBind();
         Session["FeatureType"] = "IDXImagesResidential";
         mlsClient = null;
         if (dt.Rows.Count > 0)
         {
             FeatureId.Visible = true;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
     }
 }
コード例 #2
0
        void GetFeaturedProperties()
        {
            try
            {
                Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
                DataTable dt = mlsClient.FeatureListing("E2915446,W2906348,W2836379,W2844297,C2849402,N2869810,N2889909,N2894999");

                rptFeaturedProperties.DataSource = dt;
                rptFeaturedProperties.DataBind();
                mlsClient = null;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
            }
        }