This post originated from an RSS feed registered with .NET Buzz
by Paschal.
|
Original Post: BaseHref
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
|
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Paschal
Latest Posts From help.net
|
|
Advertisement
|
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 ?
Read: BaseHref