Problems with VS2019 ASP.NET web site project and href links

Tracy Schreiber 1 Reputation point
2021-03-19T10:25:00.433+00:00

Hi,

I have a problem with the url used in the href attribute for my style sheets. The website should run under a directory I will call /MyWebSite. I have added the virtual directory to my applicationhost.config so that it look like this:

See attachment

Now I can open my top page using http://localhost:50380/MyWebSite/StartPage.aspx and all the page links work.

Now, in start page I have the following tag in StartPage.aspx:

See attachment

However, the style sheet is not being loaded. Can anyone tell me how I can get this to work?

Thank You

79641-site.txt

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,240 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,570 questions
{count} votes