public void GetImages()
        {
            Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
            DataTable dt = clsobj.GetDreamHouseList();

            if (dt.Rows.Count > 0)
            {
                rptImages.DataSource = dt;
                rptImages.DataBind();
            }
            mlsClient = null;
        }
예제 #2
0
        public void GetImages()
        {
            Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
            //DataTable dt = mlsClient.GetImageByMLSID(Convert.ToString(Request.QueryString["MLSID"]));

            DataTable dt = clsobj.GetDreamHouseList();

            if (dt.Rows.Count > 0)
            {
                rptImages.DataSource = dt;
                rptImages.DataBind();
            }
            else
            {
            }

            mlsClient = null;
        }
        void GetDreamHouseList()
        {
            try
            {
                DataTable dt = clsobj.GetDreamHouseList();
                if (dt.Rows.Count > 0)
                {
                    dt.TableName     = "ContactedUsers";
                    upSearch.Visible = true;
                    PagedDataSource pagedData = new PagedDataSource();
                    pagedData.DataSource       = dt.DefaultView;
                    pagedData.AllowPaging      = true;
                    pagedData.PageSize         = 8;
                    pagedData.CurrentPageIndex = CurrentPage;
                    ViewState["totpage"]       = pagedData.PageCount;
                    lnkPrevious.Visible        = !pagedData.IsFirstPage;
                    lnkNext.Visible            = !pagedData.IsLastPage;
                    lnkFirst.Visible           = !pagedData.IsFirstPage;
                    lnkLast.Visible            = !pagedData.IsLastPage;

                    rptSearchResults.DataSource = pagedData;
                    rptSearchResults.DataBind();
                    rptSearchResultList.DataSource = pagedData;
                    rptSearchResultList.DataBind();

                    doPaging();
                    RepeaterPaging.ItemStyle.HorizontalAlign = HorizontalAlign.Center;
                }
                else
                {
                    resultSearch.Visible = true;
                    pagesLink.Visible    = false;
                    resultSearch.Text    = "Property is not available ";
                    //btnGridView.Visible = false;
                    //btnListView.Visible = false;
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
            }
        }