L
Lloyd Dupont
let's I have an image in this directory
/myVirtualDir/images/arrow.gif
let's says this image is used in a common, InfoBox.ascx control which is
used in many pages, let says in
/myVirtualDir/Default.aspx
&
/myVirtualDir/someSubDir/APage.aspx
How could I set the path (href) to this image, so that it work on both
pages?
Curently I use a home made function which is more or less like that
string GetAppPath(HttpContext ctxt, sring path)
{
string app = ctxt.Request.ApplicationPath;
return Path.Combine(app, path);
}
My question is:
I assume that there is probably a function doing that work which I could
use, no?
which one?
/myVirtualDir/images/arrow.gif
let's says this image is used in a common, InfoBox.ascx control which is
used in many pages, let says in
/myVirtualDir/Default.aspx
&
/myVirtualDir/someSubDir/APage.aspx
How could I set the path (href) to this image, so that it work on both
pages?
Curently I use a home made function which is more or less like that
string GetAppPath(HttpContext ctxt, sring path)
{
string app = ctxt.Request.ApplicationPath;
return Path.Combine(app, path);
}
My question is:
I assume that there is probably a function doing that work which I could
use, no?
which one?