Exemple #1
0
 private string GetParentLink()
 {
     if (ParentId.HasValue && ParentId.Value != 0)
     {
         if (ParentItem != null && ParentItem.InfoLibItemId != 0)
         {
             return(InfoLibUtil.ConstructInfoLibItemNavigationUrl(
                        QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(), ParentId.Value.ToString()));
             //return RouteController.ViewInfoLibItems(ParentId.Value);
         }
     }
     return(string.Empty);
 }
Exemple #2
0
        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);
                }
            }
        }