|
 |
aspx_beginners thread: Paths..
Message #1 by "Datatal AB - Gauffin, Jonas" <Jonas@d...> on Thu, 12 Sep 2002 11:31:39 +0200
|
|
hello.
my site have the following treestructure (on devmachine):
/supportnet/
/supportnet/inc
/supportnet/img
/supportnet/case
/supportnet/case/info
[...]
on prod the structure will be
support.mysite.com/
support.mysite.com/inc
support.mysite.com/img
support.mysite.com/case
support.mysite.com/case/info
[...]
im using some usercontrols as htmltemplates (placed in supportnet/inc).
The usercontrols contains some TD's with images (placed in
supportnet/img).
How should i write the paths to the pictures in the htmltemplates so
that it works with all pages in my site + at the prod site?
Relative paths is out of the question since if i use ../img it works in
/case but not in /case/info, and using the virtual directory is as bad
since im not using a VD on the production site.
Message #2 by rod@s... on Fri, 13 Sep 2002 09:29:58 +0800
|
|
Hi,
You said ../img does not work, just checking that you mean ../../img to
reference /img from /case/info.
Each ../ moves back one directory.
-----Original Message-----
From: Datatal AB - Gauffin, Jonas [mailto:Jonas@d...]
Sent: Thursday, 12 September 2002 5:32 PM
To: aspx_beginners
Subject: [aspx_beginners] Paths..
hello.
my site have the following treestructure (on devmachine):
/supportnet/
/supportnet/inc
/supportnet/img
/supportnet/case
/supportnet/case/info
[...]
on prod the structure will be
support.mysite.com/
support.mysite.com/inc
support.mysite.com/img
support.mysite.com/case
support.mysite.com/case/info
[...]
im using some usercontrols as htmltemplates (placed in supportnet/inc).
The usercontrols contains some TD's with images (placed in supportnet/img).
How should i write the paths to the pictures in the htmltemplates so that it
works with all pages in my site + at the prod site?
Relative paths is out of the question since if i use ../img it works in
/case but not in /case/info, and using the virtual directory is as bad since
im not using a VD on the production site.
---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195
Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418
These books look at how we can create data-centric ASP.NET
applications. Requiring some basic knowledge of ASP.NET,
Access and SQL the authors guide you through the process
of connecting and consuming information in a variety of
ways. They are packed full of excellent illustrative code
examples, demonstrating important fundamental principles.
|
|
 |