Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the proper URL in user control
Message
From
22/08/2008 13:26:54
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01341120
Message ID:
01341183
Views:
10
>>. I thought I needed to find a way to reference from the web root, but not sure how. The directory I am in seems to be always appended first before what is placed here.
>
>That's what the / prefix does - it starts the URL path from the root of the website. So a link that points to /MembersOnly/MemberPortal.aspx should work from anyplace in the site. Are you sure that's exactly how the links are rendering on each page? And, for example "MemberPortal.aspx" actually exists in a subfolder named "MembersOnly" (and not in the root)?

I had changed them all to this:
<ul class="menutextindent">
    <li><a href="/MembersOnly/MemberHome.aspx">Members Home</a></li>
    <li><a href="/MembersOnly/MemberPortal.aspx">Member Portal</a></li>
    <li><a href="/MembersOnly/MeetingPortal/OnlineMeeting.aspx">Online Meeting</a></li>
    <li><a href="/MembersOnly/Documents.aspx">Documents</a></li>
    <li><a href="/MembersOnly/Maintenance/CommonGrounds.aspx">Common Grounds</a></li>
    <li><a href="/MembersOnly/PostData.aspx">Post Data</a></li>
    <li><a href="/MembersOnly/MemberForum.aspx">Member Forum</a></li>
</ul>
Odly when I place my mouse over the link it shows correctly in the bottom such as
http://localhost:3275/MembersOnly/MemberPortal.aspx
but when I click on it I get an Error 404 - Not found message.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform