Link to home
Start Free TrialLog in
Avatar of mugsey
mugseyFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of WanaBRich
WanaBRich
Flag of United States of America image

Try using ~/images
make sure the image folder is off the application root. the "~" will translate to the application folder name.
Avatar of mugsey

ASKER

even though this is a file based app using asp.net development server (cassini) .??




Yes it should work. give it a try
Avatar of mugsey

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



ASKER CERTIFIED SOLUTION
Avatar of WanaBRich
WanaBRich
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mugsey

ASKER

Hmm
So would I need to convert project to iis project - how would I do this

jules