Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hy Everyone ..

My Pproject structre:
0 MasterpageClient
1 Dafault.aspx
2 Default2.aspx.. and so on

3. Admin Folder
3.1 MasterpageAdmin
3.2 Folder1
3.2.1 Some Pages 1,2,3..

3.3 Folder2
3.3.1 Some Pages inside it

3.4 Folder3
3.4.1 Some Pages for it

This is my project Structre
The Problem Lies Inside The Admin Folder

In The masterpageAdmin I have Created menu with link for the Pages to open
for the First time Menu Links work perfectly
After visiting any page then going back to other page or itself through Masterpage menu Link it Doesnt work bcz it assign the folder name which i visited Previosly whichgives unknow page error
for Ex In MasterPage Some Menu Links
Add Login
up
here u can see that client And upload are two Folder inside Admin

after running
Admin/Client/ClientAdd.aspx for the first visit
now after that visit the links Shows the folder asssign like
Admin/Client/Upload/UploadFewStock.aspx
So how to give link so that its work perfectly
t
thanks in Advance
Posted

1 solution

Yep, it threw me for a while when I got started!
Instead of typing the URL as normal:

<img src="Resources/Images/Logos/myLogo.gif" alt="Text description!" />

Make it:

<img src="<%= Page.ResolveUrl("~")%>Resources/Images/Logos/myLogo.gif" alt="Text description!" />

That should cure it. And before you ask, yes I know the quotes look wrong - they aren't! Use it exactly as you read it here!
It works with any link, img, href, whatever - it is replaced by the server with the full path required.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900