Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the proper URL in user control
Message
 
À
22/08/2008 14:21:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01341120
Message ID:
01341203
Vues:
17
>
>Ok, I just ran the web app, logged in, and was at the MemberHome page. I changed the url from:
>http://localhost:3275/POAAEWeb/MembersOnly/MemberHome.aspx
>to this manually - It works when I type it in manually.
>http://localhost:3275/POAAEWeb/MembersOnly/MemberPortal.aspx

>Equivalent to this if it was published to the host:
>http://www.aeroestates.org/MembersOnly/MemberPortal.aspx

Yeah, the difference is that in testing you're running out of a virtual directory named POAAEWeb, but production doesn't have that same pathing. If you just change to use server-side controls for your links and use the ~/MembersOnly/ syntax, that should work. ex.
<ul class="menutextindent">
    <li><a runat="server" href="~/MembersOnly/MemberHome.aspx">Members Home</a></li>
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform