private AddUserFavorite ( string userCode, string type, string pageName, string pageUrl, string pageImage, bool hasPermission ) : void | ||
userCode | string | |
type | string | |
pageName | string | |
pageUrl | string | |
pageImage | string | |
hasPermission | bool | |
return | void |
protected override void OnInitComplete(EventArgs e) { base.OnInitComplete(e); SiteMapPath smp = (SiteMapPath)SiteMapPath1; string hiddensmp = string.Empty; if (this.Session["Hiddensmp"] != null) { hiddensmp = this.Session["Hiddensmp"].ToString(); } if (smp.Provider.CurrentNode == null || hiddensmp == "Hiddensmp" || isHiddensmp) { this.divsmp.Visible = false; } else { this.Title = smp.Provider.CurrentNode.Title; string pageImage = smp.Provider.CurrentNode.Description; //记录访问历史 if (!IsPostBack) { if (this.Request.UrlReferrer != this.Request.Url && this.Request.Url.Query != null && this.Request.Url.Query.Trim() != string.Empty) // { UserFavoritesMgrWS userFavoritesMgrWS = new UserFavoritesMgrWS(); userFavoritesMgrWS.AddUserFavorite(this.CurrentUser.Code, "History", this.Title, this.Request.Url.Query, pageImage, hasPermission); } } } }
protected override void OnInitComplete(EventArgs e) { base.OnInitComplete(e); SiteMapPath smp = (SiteMapPath)SiteMapPath1; string hiddensmp = string.Empty; if (this.Session["Hiddensmp"] != null) { hiddensmp = this.Session["Hiddensmp"].ToString(); } if (smp.Provider.CurrentNode == null || hiddensmp == "Hiddensmp" || isHiddensmp) { this.divsmp.Visible = false; } else { this.Title = smp.Provider.CurrentNode.Title; string pageImage = smp.Provider.CurrentNode.Description; //记录访问历史 if (!IsPostBack) { if (this.Request.UrlReferrer != this.Request.Url && this.Request.Url.Query != null && this.Request.Url.Query.Trim() != string.Empty) // { UserFavoritesMgrWS userFavoritesMgrWS = new UserFavoritesMgrWS(); userFavoritesMgrWS.AddUserFavorite(this.CurrentUser.Code, "History", this.Title, this.Request.Url.Query, pageImage, hasPermission); } } } }