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); }
// Static members public static ViewFrame GetContainingViewFrame(Control child) { ViewFrame ancestor = null; while ((child != null) && ((ancestor = child as ViewFrame) == null)) { child = child.Parent; } return(ancestor); }
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))); }