private string GetTopLevelParentLink() { if (ParentId != 0) { InfoLibItem item = InfoLibBLL.GetInfoLibTopLevelParent(ParentId.Value, false); if (item != null && ParentItem.ParentId != 0) { //return RouteController.ViewInfoLibItems(item.InfoLibItemId); return(InfoLibUtil.ConstructInfoLibItemNavigationUrl( QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(), item.InfoLibItemId.ToString())); } } return(string.Empty); }
private void InitializeView() { InfoLibForumCallItem forumCallItem = InfoLibBLL.GetInfoLibForumCallItem(); if (forumCallItem != null) { divforumCallSummaryView.Visible = true; InfoLibItem summaryItem = forumCallItem.SummaryItem; litSummaryViewContent.Text = summaryItem.ItemHeader.HeaderText; if (forumCallItem.DetailedItem != null) { hlMoreLink.Visible = true; NameValueCollection nvColl = new NameValueCollection(); nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_ITEMID_INT.Description(), forumCallItem.DetailedItem.InfoLibItemId.ToString()); nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(), forumCallItem.DetailedItem.ParentId.ToString()); nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_SPECIAL_IDENTIFIER.Description(), InfoLibSpecialIdentifiers.Forum_call.EnumValue <int>().ToString()); hlMoreLink.NavigateUrl = InfoLibUtil.ConstructInfoLibItemNavigationUrl(nvColl); } } }
private void InitializeData() { IHttpHandler handler = this.Page as IHttpHandler; IRouteDataPage routeDataPage = null; if (handler != null) { routeDataPage = (handler as IRouteDataPage); } if (routeDataPage != null) { if (routeDataPage.RouteData.Values[INFOLIBITEM_PARENT_ID_ROUTE_KEY] + string.Empty != string.Empty) { ParentId = Convert.ToInt32(routeDataPage.RouteData.Values[INFOLIBITEM_PARENT_ID_ROUTE_KEY]); } } if (!ParentId.HasValue || ParentId.Value == 0) { return; } data = InfoLibBLL.GetInfoLibItem(ParentId.Value, RETREIVE_LINKED_FILE_BINARY); }