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)); }
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)); }