Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of BASE HREF and internal menus
Message
 
To
02/06/2006 20:08:42
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01126857
Message ID:
01128047
Views:
34
Look into Control.ResolveUrl() which allows you to use relative syntax using a ~. Base is problematic for many things such as style sheet image references, so use of a base reference often works better. In your case you'll probably want Page.ResolveUrl().

+++ Rick ---

>This is not specific to ASP.NET but ASP.NET allows me to adjust the link in a specific circumstances, a task that I would like to avoid. Basically, as soon as we use BASE HREF in a page, we can no longer use internal menus by simply using #Paragraph1, #Paragraph2, etc. We have to specific the full URL that was received before the syntax. So, basically, if I am on a page named FAQ.aspx, I would have to put the full URL wherever in the menu I wish to link to internal links such as FAQ.aspx#Paragraph1, FAQ.aspx#Paragraph2, etc. Is there anyone who found a way to use BASE HREF and to use a syntax for all those menu items where I wouldn't have to use the full URL received?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform