private void BindData()
    {
        ascCategory.IsShowAllCategory = true;

        ArticleQuery query = ArticleQuery.GetQueryFromQueryString(Request.QueryString);

        btnAll.CssClass = string.Empty;
        lblTip.Text     = string.Empty;

        // 判断标题
        if (!string.IsNullOrEmpty(query.Title))
        {
            lblTip.Text = "标题中包含“" + query.Title + "”";
        }

        // 判断分类
        if (query.CategoryID.HasValue)
        {
            if (!string.IsNullOrEmpty(lblTip.Text))
            {
                lblTip.Text += ";";
            }

            // 获取分类
            ArticleCategory ac = ArticleManager.GetArticleCategory(query.CategoryID.Value);
            //ascCategory.SelectedCategoryID = query.CategoryID.Value;
            lblTip.Text += "分类为“" + ac.Name + "”";
        }

        // 判断点击次数
        if (query.HitStartTimes.HasValue)
        {
            if (!string.IsNullOrEmpty(lblTip.Text))
            {
                lblTip.Text += ";";
            }

            lblTip.Text += "访问量大于" + query.HitStartTimes.Value + "次";
        }

        if (query.HitEndTimes.HasValue)
        {
            if (!string.IsNullOrEmpty(lblTip.Text))
            {
                lblTip.Text += ";";
            }

            lblTip.Text += "访问量小于" + query.HitEndTimes.Value + "次";
        }

        // 判断日期
        if (query.CreateStartTime.HasValue)
        {
            if (!string.IsNullOrEmpty(lblTip.Text))
            {
                lblTip.Text += ";";
            }

            lblTip.Text += "时间从“" + query.CreateStartTime.Value.ToShortDateString() + "”开始";
        }

        if (query.CreateEndTime.HasValue)
        {
            if (!string.IsNullOrEmpty(lblTip.Text))
            {
                lblTip.Text += ";";
            }

            lblTip.Text += "时间到“" + query.CreateEndTime.Value.ToShortDateString() + "”截止";
        }

        if (string.IsNullOrEmpty(lblTip.Text))
        {
            lblTip.Text     = "全部";
            btnAll.CssClass = "active";
        }

        query.PageSize = Int32.MaxValue;

        PagingDataSet <Article> products = ArticleManager.GetArticles(query);

        egvArticles.DataSource = products.Records;
        egvArticles.DataBind();
    }