D
Dave
I've been having trouble with the development of my ASP.NET site. The
problem stems from the fact that I use one development server for many
projects like www.devserver.com/project/, but each deployed site is at
www.deployedproject.com/.
I was originally developing in ASP and I decided to do future
development only in .NET, but some of my site (like the default page) is
in ASP. If I have an ASP file with an include directive in it to
include "/templates/top.asp" that works fine on the production server,
but on the development server it doesn't work. There I need to specify
the include as "templates/top.asp" but then that doesn't work on the
deployment server.
I can either use absolute paths or relative paths. Absolute paths only
work on my deployment server, and relative paths only work on my
development server! So I can't develop something and see it work
properly until I've already deployed it! Help!
Is there anything perhaps in a global configuration file or site setting
that will help me to get around this? I want to be able to simply use
the site copy function to deploy.
If I'm not explaining it well, suppose my site is organized like this:
/template.cs
/catalog.aspx
/pictures/index.aspx.cs
/images/logo.jpg
Suppose I make a template class that inherits from System.Web.UI.Page,
and it displays /images/logo.jpg. If I don't have the first / character
then the image won't display properly when I deploy to the hosting
company. So I use the absolute path here and it appears fine on
catalog.aspx, where I inherit from the template class in template.cs,
and it in turn references the image file.
However, then I want to use the same page template in
/pictures/index.aspx.cs. Now I run into trouble because it thinks that
I am looking for /pictures/imates/logo.jpg.
I didn't have this problem until I changed hosting companies, and
suddenly I was required to use absolute paths. Is this a configurable
option?
Thank you so much!
Going nucking futz with this!
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
www.SEN.us
problem stems from the fact that I use one development server for many
projects like www.devserver.com/project/, but each deployed site is at
www.deployedproject.com/.
I was originally developing in ASP and I decided to do future
development only in .NET, but some of my site (like the default page) is
in ASP. If I have an ASP file with an include directive in it to
include "/templates/top.asp" that works fine on the production server,
but on the development server it doesn't work. There I need to specify
the include as "templates/top.asp" but then that doesn't work on the
deployment server.
I can either use absolute paths or relative paths. Absolute paths only
work on my deployment server, and relative paths only work on my
development server! So I can't develop something and see it work
properly until I've already deployed it! Help!
Is there anything perhaps in a global configuration file or site setting
that will help me to get around this? I want to be able to simply use
the site copy function to deploy.
If I'm not explaining it well, suppose my site is organized like this:
/template.cs
/catalog.aspx
/pictures/index.aspx.cs
/images/logo.jpg
Suppose I make a template class that inherits from System.Web.UI.Page,
and it displays /images/logo.jpg. If I don't have the first / character
then the image won't display properly when I deploy to the hosting
company. So I use the absolute path here and it appears fine on
catalog.aspx, where I inherit from the template class in template.cs,
and it in turn references the image file.
However, then I want to use the same page template in
/pictures/index.aspx.cs. Now I run into trouble because it thinks that
I am looking for /pictures/imates/logo.jpg.
I didn't have this problem until I changed hosting companies, and
suddenly I was required to use absolute paths. Is this a configurable
option?
Thank you so much!
Going nucking futz with this!
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
www.SEN.us