Path

J

Jim McGivney

I have two paths defined in my web.config
<appSettings>
<add key="UploadString" value="C:\Documents and Settings\Bobo\My
Documents\Visual Studio 2005\WebSites\Bebe\Graphics\" />
<add key="ImageString" value="~/Graphics/"/>
</appSettings>

If I use the UploadString to upload a file and then the ImageString to
display the file, all goes well.

If I try to upload a file using the ImageString I get an error stating I
need a full path.

If I try to display a graphic using the UploadString I get a message that
the file is not found.

What's going on here, I must not understand paths in .net.

Also, why does one string use / (slashes) while the other demands \
(backslashes)

Thanks in advance for your help,

Jim
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top