Thank you.
@Html.Raw(...) work well.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Attempting to do code behind in a Visual Studio Code Application when I have done my own HTML Markup code in a routine in the C# code:
.
.
.
@ViewData["abc"] = "<br/>Message<br/Message2<br/>Message3";
.
.
.
OR
.
.
.
@ViewData["abc"] = "<table><tr><td>1</td></tr><tr><td>2</td></tr></table>";
.
.
.
My .CSHTML Page to render the data has:
.
.
.
@ViewData["abc"]
.
.
.
When running my application, I can see the data used in my code but it will not render as if on a hard coded HTML Page. Can take the exact data and paste it between <html> and </html> tags and it works properly.
Even went so far as to create an ASPX Application in Visual Studio 2015 with the same result.
For my application, I am restricted to using Microsoft Plug-ins for C# and Live Preview Only at this point in time.
Any ideas on HOW to resolve this issue without using Python or another Plug-in for Visual Studio Code? Java or JavaScript would be an acceptable method if it would work properly!
Thanks in advance for any helpful hints!
Thank you.
@Html.Raw(...) work well.