about '~'

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

In my webcontrol I frequently set the path to a resource with a path like:
"~/images/sample.gif"

Now I'm writing a web user control in code (all in C#) and I need to
transform myself this ~ to either:
- "/"
- or "/virtualroot"

how do I do that?
I assume there should be a function somewhere.... but I'm still unsuccessful
at finding it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top