Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the proper URL in user control
Message
 
To
22/08/2008 14:21:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01341120
Message ID:
01341203
Views:
14
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform