Rewriting a path with a slash (“/”) in it will cause a HyperLink’s image specified in the ImageUrl property within an App_Theme file to not be displayed. This can also lead to a “Cannot use a leading …” error when running the website within IIS.
Here’s a screenshot of the issue occuring:
This is kind of a strange bug, since doing the same thing with an Image works just fine. It’s only the HyperLink that breaks. I experienced this issue the other day, and it took me a little bit to figure out what was causing the problem. The answer is ASP.NET, kind of.
Download Code: ASPNETRewritePathHyperLinkBug.zip (3.28 kb)
- 26 Oct 2022
- 07 Oct 2022
- 13 Sep 2022
- 06 Sep 2022
- 13 Aug 2022
Recent on Build5Nines.com
This site is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We also participates in affiliate programs with Udemy, and other sites. This site is compensated for referring traffic and business to these companies.