mugsey
asked on
relative paths using asp.net development server (cassini) visual studio 2008
I have a file based web app using nested master pages. The first master page works fine because all image urls in the CSS and masterpage are like this ../../ and looking at an image folder at the virtual root of the application for example
/myapplication/images/
The master page that inherits from the main master cannot pickup these images. Also it has its own CSS that is also looking at the same image folder. How can I make it so everything points to the image folder? For example /images/ or ../images? I still need to use ASP.NET development server (cassini)
thanks
Jules
/myapplication/images/
The master page that inherits from the main master cannot pickup these images. Also it has its own CSS that is also looking at the same image folder. How can I make it so everything points to the image folder? For example /images/ or ../images? I still need to use ASP.NET development server (cassini)
thanks
Jules
Try using ~/images
make sure the image folder is off the application root. the "~" will translate to the application folder name.
ASKER
even though this is a file based app using asp.net development server (cassini) .??
Yes it should work. give it a try
ASKER
hi I tried but it does not work
I can only get it to work by doing ../../ as the master page is two folders down from the route.
The images folder is at the route though
jules
I can only get it to work by doing ../../ as the master page is two folders down from the route.
The images folder is at the route though
jules
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hmm
So would I need to convert project to iis project - how would I do this
jules
So would I need to convert project to iis project - how would I do this
jules