void SearchResidentialProperties()
        {
            try
            {
                Property1.MLSDataWebServiceSoapClient mlsClient = new Property1.MLSDataWebServiceSoapClient();
                DataTable dt = new DataTable();
                dt = mlsClient.GetResidentialPropertiesTop10("0", "0", "0", "0", "0", "0", "0");
                if (dt.Rows.Count > 0)
                {
                    lblcount.Text    = "" + Convert.ToString(dt.Rows.Count) + "  Matches Found";
                    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;
                    mlsClient = null;
                }
                else
                {
                    resultSearch.Visible = true;
                    pagesLink.Visible    = false;
                    resultSearch.Text    = "Property is not available ";
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
            }
        }