/// <summary> /// 构建当前位置导航 /// </summary> /// <returns></returns> string BuildPagePath() { string pos = "开始 > <a >本站设置</a> > <a >栏目管理</a> > {0} > {1}"; string channelFullPath = ""; string action = "创建子栏目"; if (ChannelID != null) { Channel ch = ChannelHelper.GetChannel(ChannelID, null); if (ch != null) { channelFullPath = ChannelHelper.FullPathFormat(ch.FullPath, " > "); action = "栏目修改"; } } else if (ParentID != null) { Channel pch = ChannelHelper.GetChannel(ParentID, null); if (pch != null) { channelFullPath = ChannelHelper.FullPathFormat(pch.FullPath, " > "); action = "栏目修改"; } } return(string.Format(pos, channelFullPath, action)); }