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(); } }
protected void Page_Load(object sender, EventArgs e) { try { GetCookie(); if (!IsPostBack) { ViewState["tagid"] = 0; _bllwebsite = new BllWebsite(); _blltag = new BllTag(); _blluser = new BllUser(); if (Request.QueryString["PageNo"] != null) { _pageNumber = Convert.ToInt32(Request.QueryString["PageNo"]); } if (Request.QueryString["flow"] == "inlinecode") { if (Request.QueryString["Id"] != null) { ViewState["tagid"] = Convert.ToInt64(Request.QueryString["Id"]); } Lstdtonewsfeed = _blltag.GetTagNewsFeed(_userId, Convert.ToInt64(ViewState["tagid"]), _pageNumber, 40); } else if (Request.QueryString["flow"] == "wall") { Lstdtonewsfeed = _blluser.GetUserNewsFeed(_userId, _pageNumber, 40); } else if (Request.QueryString["flow"] == "profile") { if (Request.QueryString["TagId"] != null && Request.QueryString["EmoId"] != null) { var tagstr = Request.QueryString["TagId"]; var emostr = Request.QueryString["EmoId"]; Lstdtonewsfeed = _blluser.GetUserTagFeed(_userId, tagstr, emostr, _pageNumber, 10); } } else if (Request.QueryString["flow"] == "website") { if (Request.QueryString["TagId"] != null && Request.QueryString["EmoId"] != null && Request.QueryString["WebsiteId"] != null) { var tagstr = Request.QueryString["TagId"]; var emostr = Request.QueryString["EmoId"]; var websiteId = Convert.ToInt64(Request.QueryString["WebsiteId"]); Lstdtonewsfeed = _bllwebsite.GetWebsiteFeed(_userId, websiteId, tagstr, emostr, _pageNumber, 10); } } } } catch (Exception ex) { ex.ToExceptionless().Submit(); } }