C# ASP.net render HTML String
asp.net, c#, html, rendering
Solution
it sounds like the value you are trying to display is already html encoded. try this:
<%= HttpUtility.HtmlDecode((string)objRow["Post"]) %>
Problem
I have a bit of code in my markup like this : ``` <% Response.Write(((String)objRow["Post"]).Trim()); %> ``` The value in objRow["Post"] is HTML markup - similar to this: ``` <p><span style="color: #ff0000;">asdsada</span></p> ``` The content of which was created using tinymce. I now want to render the resultant html - basically a view function of a previously created save function. At the moment, my markup literally spits out the HTML you see there onto my website - but what I really want is a red line of text saying asdsada. Please help