SetView() public static method

public static SetView ( string hash, string viewPath ) : void
hash string
viewPath string
return void
Ejemplo n.º 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);
        }
        public ActionResult SetView(string path, string uiContextId, string view, string back)
        {
            path        = HttpUtility.UrlDecode(path);
            uiContextId = HttpUtility.UrlDecode(uiContextId);
            view        = HttpUtility.UrlDecode(view);
            back        = HttpUtility.UrlDecode(back);

            string hash = ViewFrame.GetHashCode(path, uiContextId);

            ViewFrame.SetView(hash, view);
            return(Redirect(HttpUtility.UrlDecode(back)));
        }