I recently discovered TempData to pass messages back to the view after processing logic in the controller. But when I try and pass html with the message it is rendering the actual tags and not interpreting them as html when the page renders.
Is there any way around this or is my approached flawed?
TempData["Message"] = "<span style='color:red;'>There was a problem moving the files.</span>";
Here is what is shown in the browser:
<span style='color:red;'>There was a problem moving the files.</span>
Thanks!