Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the proper URL in user control
Message
From
22/08/2008 12:13:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01341120
Message ID:
01341160
Views:
10
>>I have tried:
>>"~/MembersOnly/MemberPortal.aspx"
>>"MembersOnly/MemberPortal.aspx"
>>"../MembersOnly/MemberPortal.aspx"
>>
>>I can't get anything to work, any help is appreciated.
>
>You should be able to use /MembersOnly/MemberPortal.aspx. You can't use the ~ syntax here since you're not using server-side controls. This assumes that your URL looks like this when you are in the root directory:

This doesn't seem to work on any of the links from any position. Since the directory where I am at is already /MembersOnly/ then it assumes this. If I navigate to another directory like /MembersOnly/Maintenance/ then it starts here. 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.

So from the MembersOnly directory all the links will work if I just put in:
"MemberPortal.aspx"
or
"Maintenance/CommonGrounds.aspx"

But if I first navigate to Maintenance/CommonGrounds.aspx" then try to go to MemberPortal; I get this attempt:
POAWeb/MembersOnly/Maintenance/MemberPortal.aspx and of course this is not found.
>
>http://www.mywebsite.com
>
>If it has a subdirectory, eg http://www.mywebsite.com/POAAEWeb/ then you need to change the links to /POAAEWeb/MembersOnly/MemberPortal.aspx.

Yes, my root is: www.aeroestates.org.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform