public override void ProcessRequest() { if (SessionInfo.Current.User.IsNull) { Context.Response.Redirect("~/Login.aspx?returnUrl=" + UrlEncoder.Encode(Context.Request.RawUrl)); } // First setup the basic asset finder SessionInfo.Current.UserSessionInfo.SavedUserAssetSearch.AssetFinder = SearchManager.GetBaseAssetFinder(SessionInfo.Current.User); // Then initialize it from the querystring SearchUrlMapper.SetupSearchFromRequest(Context.Request.QueryString, SessionInfo.Current.UserSessionInfo.SavedUserAssetSearch); // All set, send the user to the search results page Context.Response.Redirect("~/SearchResults.aspx"); }
protected void Page_PreRender(object sender, EventArgs e) { PermalinkHyperLink.NavigateUrl = SearchUrlMapper.GetUrlForSearch(SessionInfo.Current.UserSessionInfo.SavedUserAssetSearch); }