Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of BASE HREF and internal menus
Message
 
To
09/06/2006 09:44:56
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:
01128209
Views:
23
>The use of ~ causes a site to be blocked by Norton Security tools. So, we got rid of that character a few months ago when Norton decided to implement that detection thinking that all sites using that character are bad sites. This detection was so bad that the site was completely blocked. So, basically, a user thinks that the site is down when it is fully operational.
>

Why would the ~ ever get sent to the client over an Internet Connection? The ~ would be resolved before that.

You'd call ResolveUrl() as part of your NavigateUrl assignment below...

+++ Rick ---



>As for Page.ResolveUrl(), I understand it provides me a generic way to resolve and adjust a hyperlink in a control so I can have it linked from the main directory, again by using that ~ character.
>
>In my case, I have the ASPX like this where I show two examples of menu items:
>
>
><LI><B><asp:HyperLink ID="HyperLink1" runat="server">Who is Direct Martial Arts?</asp:HyperLink></B>
><LI><B><asp:HyperLink ID="HyperLink2" runat="server">What do we have to offer?</asp:HyperLink></B>
>
>
>Then, in the code behind, I use:
>
>
>        CType(oApp.oPage.FindControl("HyperLink1"), System.Web.UI.WebControls.HyperLink).NavigateUrl = oApp.cUrlReceivedOriginal + "#1"
>        CType(oApp.oPage.FindControl("HyperLink2"), System.Web.UI.WebControls.HyperLink).NavigateUrl = oApp.cUrlReceivedOriginal + "#2"
>
>
>The step I am trying to avoid is to use code behind to adjust the URL. If there would be a syntax directly from the ASPX page I could use, that would help me a lot.
>
>Or, maybe I misunderstood the use of Page.ResolveUrl(). If that is the case, don't hesitate to let me know.
>
>Thanks
+++ 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