I want to add a ModelState error, like so:
ModelState.AddModelError("", "Some message, <a href="/controller/action">click here</a>)
However, the link doesn't get encoded, and so is displayed like text. I tried using
<%= Html.ValidationSummary(true, "Some message")
instead of
<%: Html.ValidationSummary(true, "Some message")
But no luck.
Anyone have any idea how to get this working?
Cheers