SenseNet.Portal.UI.ContentListViews.ViewFrame.SetView C# (CSharp) Method

SetView() public static method

public static SetView ( string hash, string viewPath ) : void
hash string
viewPath string
return void
        public static void SetView(string hash, string viewPath)
        {
            HttpContext.Current.Session[hash] = viewPath;
        }
    }

Usage Example

Example #1
0
        public static void SetView(Content content, string uiContextId, string view, string back)
        {
            string hash = ViewFrame.GetHashCode(content.Path, uiContextId);

            ViewFrame.SetView(hash, view);
            HttpContext.Current.Response.Redirect(back, true);
        }
All Usage Examples Of SenseNet.Portal.UI.ContentListViews.ViewFrame::SetView