/// <summary> /// for NavTrees... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void TreeHandle(object sender, CommandEventArgs e) { int navId = (int)(e.CommandArgument); // the commad name is prefixed with a "_" so that it doesn`t collide with the predefined .NET command names and doesn`t fire // specialized events UserAction action = (UserAction)Enum.Parse(typeof(UserAction), e.CommandName.Substring(1)); string routeUrl = Page.GetRouteUrl(CE.GlobalState == GlobalState.Architect ? "ArchitectShowPanelRoute" : "AdministerBrowsePanelRoute", new { panelId = currentTableActionPanels[currentTableActionPanels.ContainsKey(action)?action:UserAction.Multiple], action = e.CommandName }); string queryString = "?IKP0=" + navId; Page.Response.Redirect(routeUrl + queryString); }