Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HyperLink.NavigateUrl always adds an extra ../ when going to a higher level directory

Reply
Thread Tools

HyperLink.NavigateUrl always adds an extra ../ when going to a higher level directory

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      05-29-2005
Whenever I assign a value to the HyperLink.NavigateUrl property, it adds an
extra ../ in the generated href= attribute of the anchor tag. For example,
when I assign it the value "comments.aspx" the href attribute comes out as
href="../comments.aspx" The location of the file with the code that
generates the anchor is in the root directory, while the aspx file is one
level deeper. Could this be the problem? If it is, how can I fix it so that
I can use it in any directory? Here is my basic file structure:

ROOT
-navigation.ascx
-navigation.ascx.vb (uses navbuttoninfo.vb)
-navbuttoninfo.vb (this is the file where the NavigateUrl property is
assigned)
-PAGE THAT USES NAVIGATION.ASCX
-PAGE THAT USES NAVIGATION.ASCX
-PAGE THAT USES NAVIGATION.ASCX
-PAGE THAT USES NAVIGATION.ASCX
-PAGE THAT USES NAVIGATION.ASCX

Thanks.
--
Nathan Sokalski
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
importing modules from higher level directory Nathan Huesken Python 0 06-25-2010 09:20 PM
Images in higher level directory Iain HTML 7 10-17-2006 07:40 AM
Accessing higher security level from higher security level nderose@gmail.com Cisco 0 07-11-2005 10:20 PM
HyperLink.NavigateUrl always adds an extra ../ when going to a higher level directory Nathan Sokalski ASP .Net Web Controls 0 05-29-2005 11:33 PM
Going from higher security level interface to lower security interface- HELP!!! - AM Cisco 4 12-28-2004 09:52 PM



Advertisments