Resolve site url

  • Thread starter Thread starter CJF
  • Start date Start date
C

CJF

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
 
Not sure what you mean by "sometimes the ~ does not work"

Anyway you can use
Request.ApplicationPath to get the path.

George.
 
Back
Top