Re: Resolve site url

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: CJF (chrisf_at_unr.edu)
Date: 03/10/04


Date: Tue, 9 Mar 2004 16:30:47 -0800

It means the tilde is set literally into the property.
img1.imageurl = "~/images/img.gif"

View the html source of the resulting page and the image's property reads
"~/images/img.gif" and not http://mysite.com/images/img.gif.

Thanks for the info.

"George Ter-Saakov" <nospam@hotmail.com> wrote in message
news:uFUnhfiBEHA.2768@tk2msftngp13.phx.gbl...
> Not sure what you mean by "sometimes the ~ does not work"
>
> Anyway you can use
> Request.ApplicationPath to get the path.
>
> George.
>
> "CJF" <chrisf@unr.edu> wrote in message
> news:Oq0YRlhBEHA.684@tk2msftngp13.phx.gbl...
> > Sometimes the tilde ~ won't work to resolve the url of the asp.net site,
> > such as when I need to set the path to an image property in vb.net.
When
> > this is the case how can I get the URL to the project's site?
> >
> > Thanks, Chris
> >
> >
>
>



Relevant Pages

  • Re: Resolve site url
    ... George. ... > Sometimes the tilde ~ won't work to resolve the url of the asp.net site, ... > such as when I need to set the path to an image property in vb.net. ... > Thanks, Chris ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Resolve site url
    ... George. ... > Sometimes the tilde ~ won't work to resolve the url of the asp.net site, ... > such as when I need to set the path to an image property in vb.net. ... > Thanks, Chris ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Resolve site url
    ... It means the tilde is set literally into the property. ... View the html source of the resulting page and the image's property reads ... > George. ... >> Thanks, Chris ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: I would like to make a file download page -in
    ... That's a fairly sophisticated piece of JavaScript. ... However, if you want to do something just like it, view the HTML source ... "Chris" wrote in message ... > I have need of 3 boxes also and it would be great to include the ability ...
    (microsoft.public.frontpage.client)
  • Determine user directory under WindowsXP?
    ... Is there a way to determine the user's default working directory under ... WindowsXP, similar to Unix's tilde? ... George ...
    (comp.lang.tcl)