Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                IsUser();
                if (!IsPostBack)
                {
                    var uId = GetUserId();
                    ViewState["tagid"] = 0;
                    //cookie = this.Request.Cookies["Tagged"];

                    _dtotag = new DtoTag();
                    _blltag = new BllTag();
                    //BtnTagFollow.Attributes.Add("onclick", "AddUserTagSubscription('" + tagid.ToString() + "')");

                    if (Request.QueryString["flow"] != null)
                    {
                        if (Request.QueryString["flow"].ToLower() == "explore")
                        {
                            ViewState["tagid"] = Convert.ToInt64(Request.QueryString["Id"]);
                            Lstdtonewsfeed     = _blltag.GetTagNewsFeed(uId, Convert.ToInt64(ViewState["tagid"]), 1, 10);
                            _dtotag            = _blltag.GetTagById(Convert.ToInt64(ViewState["tagid"]));
                            lbltagname.Text    = _dtotag.TagName;
                        }
                        else if (Request.QueryString["flow"].ToLower() == "inlinecode")
                        {
                            ViewState["tagid"] = Convert.ToInt64(Request.QueryString["Id"]);
                            Websiteid          = Convert.ToInt64(Request.QueryString["WebsiteId"]);
                            Lstdtonewsfeed     = _blltag.GetTagNewsFeed(uId, Convert.ToInt64(ViewState["tagid"]), 1, 10);
                            _dtotag            = _blltag.GetTagById(Convert.ToInt64(ViewState["tagid"]));
                            lbltagname.Text    = _dtotag.TagName;
                            Lsttag             = _blltag.GetWebsiteTags(Websiteid);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ex.ToExceptionless().Submit();
            }
        }