Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the proper URL in user control
Message
De
22/08/2008 10:58:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Getting the proper URL in user control
Divers
Thread ID:
01341120
Message ID:
01341120
Vues:
59
Hi All,

I have a user control in a master page for the menu. I have some links in here that don't always resolve properly depending on where the user is when they click the link. I can't quite figure out how to get a resolution that works no matter where you are.
Here is my refs:
<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>
If you are in the root where this master page is and the menu is available you are in:
Root/MembersOnly/MemberHome.aspx

If you click on any of these links from here they work fine. But if you click on the Common Grounds link for instance you are taken to the Maintenance subdirectory. From there, none of the other links work anymore. If for example you click on Member Portal from there it tries to resolve to this:
/POAAEWeb/MembersOnly/Maintenance/MembersOnly/MemberPortal.aspx.

I have tried:
"~/MembersOnly/MemberPortal.aspx"
"MembersOnly/MemberPortal.aspx"
"../MembersOnly/MemberPortal.aspx"

I can't get anything to work, any help is appreciated.
Thanks
Tim
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform