Пример #1
0
        void GetImages(int DreamHouseId)
        {
            Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
            //DataTable dt = mlsClient.GetImageByMLSID(Convert.ToString(Request.QueryString["MLSID"]));

            DataTable dt = clsobj.GetSoldForSlider(DreamHouseId);

            if (dt.Rows.Count > 0)
            {
                rptImages.DataSource = dt;
                rptImages.DataBind();
                sliderDiv.Visible        = true;
                sliderImageEmpty.Visible = false;
            }
            else
            {
                sliderDiv.Visible        = false;
                sliderImageEmpty.Visible = true;
            }

            mlsClient = null;
        }