The Artima Developer Community
Sponsored Link

.NET Buzz Forum
BaseHref

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paschal

Posts: 1621
Nickname: bigapple
Registered: Nov, 2003

Paschal is a .Net developer
BaseHref Posted: Apr 7, 2004 7:19 AM
Reply to this message Reply

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

Topic: XML sucks less than Regular Expressions, ya think? Previous Topic   Next Topic Topic: TechEdBloggers live

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use