Ejemplo n.º 1
0
        private void BindItemsList()
        {
            blltag = new BllTag();
            lsttag = new List <DtoTag>();

            lsttag = blltag.GetAllTags(UserID, SearchText, PageNo, 10, flow);
        }
Ejemplo n.º 2
0
        private void BindItemsList()
        {
            _blltag = new BllTag();
            Lsttag  = new List <DtoTag>();

            Lsttag = _blltag.GetAllTags(GetUserId(), SearchText, _pageNo, 30, Flow);

            if (Lsttag != null)
            {
                if (Lsttag.Count > 0)
                {
                    var q = (from c in Lsttag
                             select c.TagCount).Max();

                    if (Flow != "myfollow")
                    {
                        lnkfollow.Attributes.Add("value", "My Follow ( " + q + " )");
                        lnkfollow.Attributes.CssStyle.Add("display", "");
                        lnkfollow.Attributes.Add("onclick", "window.location='Follow.aspx?PageNo=1&flow=myfollow'");
                        lnkback.Attributes.CssStyle.Add("display", "none");
                    }
                    else
                    {
                        lnkfollow.Attributes.CssStyle.Add("display", "none");
                        lnkback.Attributes.CssStyle.Add("display", "");
                        lnkback.Attributes.Add("onclick", "window.location='Follow.aspx?flow=search&PageNo=1'");
                    }
                }
                else
                {
                    if (Flow == "myfollow")
                    {
                        lnkfollow.Visible = false;
                        lnkback.Visible   = true;
                    }
                    lblnodata.Visible = true;
                }
            }
        }