Paths like this... how to change?

  • Thread starter Thread starter Arjen
  • Start date Start date
A

Arjen

Hello,

I have a webcontrol that have to change this path:
~/Image/NotAvailable.gif

For the function System.Drawing.Image.FromFile().
I can not use Server.MapPath()

Are there other options?

Thanks!
 
Arjen said:
Hello,

I have a webcontrol that have to change this path:
~/Image/NotAvailable.gif

For the function System.Drawing.Image.FromFile().
I can not use Server.MapPath()

Why can't you use Server.MapPath()?
 
Actually you do use MapPath. But before you have to use Control.ResolveUrl.

Jerry
 

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