Problems with VS2019 ASP.NET web site project and href links
Tracy Schreiber
1
Reputation point
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