Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //System.Diagnostics.Debugger.Launch();
                IsUser();
                UserID         = GetUserId();
                _blluser       = new BllUser();
                _blltag        = new BllTag();
                Lstdtonewsfeed = new List <DtoNewsFeed>();

                if (Request.QueryString["flow"] != null)
                {
                    Flow = Request.QueryString["flow"];
                    if (Request.QueryString["flow"].ToLower() == "userprofile")
                    {
                        if (Request.QueryString["TagID"] != null && Request.QueryString["EmoID"] != null)
                        {
                            _tagId         = Convert.ToInt64(Request.QueryString["EmoID"]);
                            Lstdtonewsfeed = _blltag.GetEmoNewsFeed(UserID, Convert.ToInt32(_tagId), 1, 10);
                        }
                        else if (Request.QueryString["TagID"] != null)
                        {
                            _tagId         = Convert.ToInt64(Request.QueryString["TagID"]);
                            Lstdtonewsfeed = _blltag.GetTagNewsFeed(UserID, _tagId, 1, 10);
                        }
                    }
                    else if (Request.QueryString["flow"].ToLower() == "explore")
                    {
                        _tagId         = Convert.ToInt64(Request.QueryString["TagID"]);
                        Lstdtonewsfeed = _blltag.GetTagNewsFeed(UserID, _tagId, 1, 10);
                    }
                    else if (Request.QueryString["flow"].ToLower() == "search")
                    {
                        _tagId         = Convert.ToInt64(Request.QueryString["search"]);
                        Lstdtonewsfeed = _blltag.GetTagNewsFeed(UserID, _tagId, 1, 10);
                    }
                }
                else
                {
                    Lstdtonewsfeed = _blluser.GetUserNewsFeed(UserID, 1, 40);
                }
            }
            catch (Exception ex)
            {
                ex.ToExceptionless().Submit();
            }
        }