private void BindData()
    {
        StoreFront ObjService = new StoreFront();
        DataSet    DS         = new DataSet();

        DS = ObjService.GetServiceSearch(Request.QueryString["Key"].ToString());
        try
        {
            if (DS.Tables[0].Rows.Count > 0)
            {
                lblTitle.Text = "Fritzy's Pet Care Pros offer the following services :";
                int currpage;
                PageDs.DataSource  = DS.Tables[0].DefaultView;
                PageDs.AllowPaging = true;
                PageDs.PageSize    = 10;

                if (ViewState["CurrentPage"] != null)
                {
                    currpage = Convert.ToInt32(ViewState["CurrentPage"]);
                }
                else
                {
                    currpage = 1;
                }
                ViewState["CurrentPage"] = currpage;
                PageDs.CurrentPageIndex  = currpage - 1;

                bool check = false;
                if (PageDs.IsFirstPage)
                {
                    check           = true;
                    lnkPrev.Visible = false;
                    lnkNext.Visible = true;
                }
                else if (PageDs.IsLastPage)
                {
                    check           = true;
                    lnkPrev.Visible = true;
                    lnkNext.Visible = false;
                }
                if (PageDs.PageCount == 1)
                {
                    lnkPrev.Visible  = false;
                    lnkNext.Visible  = false;
                    lnkPrev.CssClass = "linkDisable";
                    lnkNext.CssClass = "linkDisable";
                }
                else if (PageDs.PageCount > 1 && check == false)
                {
                    lnkPrev.Visible = true;
                    lnkNext.Visible = true;
                }


                if (DS.Tables[0].Rows.Count == 0)
                {
                    dlService.Visible = false;
                }
                else
                {
                    Session["PDSAllNewestProviders"] = PageDs;
                    dlService.DataSource             = PageDs;
                    dlService.DataBind();
                }
                if ((lnkPrev.Visible == true) && (lnkNext.Visible == true))
                {
                    lblLine.Visible = true;
                }
                else
                {
                    lblLine.Visible = false;
                }
            }
            else
            {
                dlService.Visible = false;
                lnkPrev.Visible   = false;
                lnkNext.Visible   = false;
                lblLine.Visible   = false;
                lblTitle.Text     = "No record found.";
            }
        }
        catch
        {
        }
    }