예제 #1
0
파일: Value.cs 프로젝트: marius310/bvcms
        public HtmlString HyperLink()
        {
            var s = HttpUtility.HtmlDecode(Link);

            s = s.Replace("{id}", Id.ToString());
            if (s.Contains("{queryid}"))
            {
                s = s.Replace("{queryid}", Model.CurrentPersonQueryId().ToString());
            }
            return(new HtmlString(s));
        }
예제 #2
0
        public HtmlString HyperLink()
        {
            if (Link == null)
            {
                Link = "missing html hyperlink";
            }
            var s = HttpUtility.HtmlDecode(Link);

            s = s.Replace("{id}", Id.ToString());
            if (s.Contains("{queryid}"))
            {
                s = s.Replace("{queryid}", Model.CurrentPersonQueryId().ToString());
            }
            if (s.Contains("{mfid}"))
            {
                s = s.Replace("{mfid}", Model.CurrentPersonMainFellowshipId().ToString());
            }
            return(new HtmlString(s));
        }