How to fix embedded code blocks showing as plaintext

spuser15 20 Reputation points
2023-06-03T16:39:00.02+00:00

I am having trouble creating an ASP.NET Web Form because when I visit my website in Chrome, the entire website's code just shows up as plaintext, and in IE it is not much better. I think this is caused by the embedded code block (<% %>) at the top not running at all, but in the Design View in VS it shows up just fine. How do I make my web page display properly?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
{count} votes

1 answer

Sort by: Most helpful
  1. spuser15 20 Reputation points
    2023-06-05T17:06:34.71+00:00

    Nevermind, I figured out that my hosting provider uses Linux servers and therefore makes it impossible to host ASP.NET content. Thank you for your help.