BaseHref
I discovered this morning a conflict between the HTML tag BaseHref and ~.
I like to use ~ in my code, making my life easier. But for the standards links (not server side), I tried to implement BaseHref in my ASPX pages.
This created a lot of bad Urls everywhere I used ~. It seems that BaseHref override the ~ effect.
So if I have a control ith a link to a root page in a subfolder name mycontrols, this is what's happens:
Without BaseHref
MyWebroot/MyPage.aspx
With BaseHref
MyWebroot/mycontrols/MyPage.aspx
Obviously it's wrong.
Not sure exactly where the problem is coming from.
Any idea ?