A
Alex
does anyone know if it is possible to alter the root address for an asp.net
project as it is messing up my paths.
When I develop locally the address is
localhost/mywebapplication/default.aspx however when the project is uploaded
to a server it is www.mywebsite.com/default.aspx. If I want to use a fixed
path in files I have to alter the address when it is uploaded .
e.g. when the site is being developed locally i can refer to the home page
as /mywebapplication/default.aspx
however on the server I would use /default.aspx
At the moment I have a function that alter the path as required however this
is a big overhead.
I have looked at configuring both vs.net and IIS but not found any
information.
Alex
project as it is messing up my paths.
When I develop locally the address is
localhost/mywebapplication/default.aspx however when the project is uploaded
to a server it is www.mywebsite.com/default.aspx. If I want to use a fixed
path in files I have to alter the address when it is uploaded .
e.g. when the site is being developed locally i can refer to the home page
as /mywebapplication/default.aspx
however on the server I would use /default.aspx
At the moment I have a function that alter the path as required however this
is a big overhead.
I have looked at configuring both vs.net and IIS but not found any
information.
Alex