G
Guest
Hi,
I'm working on an ASP.NET 2.0 site and my hosting provider has the root in a
different place than I have it locally which is not a problem for most
things, except for the access oledb database connection. If I try to specify
a relative path, it is not relative from the same point as the rest of
content (say an img src attribute) so it seems that this requires a full
absolute path. Is there a way I can pull this part of the connection string
from somewhere else such that on my machine it will point to one location
while on the hosting provider it will point to another location? Possibly
something with the new configuration API? I would imagine that this is a
common scenario for people hosting their sites on commercial providers....
Thanks...
-Ben
I'm working on an ASP.NET 2.0 site and my hosting provider has the root in a
different place than I have it locally which is not a problem for most
things, except for the access oledb database connection. If I try to specify
a relative path, it is not relative from the same point as the rest of
content (say an img src attribute) so it seems that this requires a full
absolute path. Is there a way I can pull this part of the connection string
from somewhere else such that on my machine it will point to one location
while on the hosting provider it will point to another location? Possibly
something with the new configuration API? I would imagine that this is a
common scenario for people hosting their sites on commercial providers....
Thanks...
-Ben