Folder App Data

J

James

Hello

I have created a project and there is a folder called App Data. In this
folder is a database and some photos, I have added items to it and linked to
those items from the design view and it has created the connection string
"~/app data"

This works fine on my computer but when I upload it to my website it seems
to go straight to the root drive (eg "E:/app data") of the web server.

Is there a way to stop this, and have it look in a folder that is in the
current directory rather than the root?

I have retyped it in the source code and put the full path in, instead of
just ~/, but this means it will not work in testing on my computer.

Many thanks in advance

James
 
J

James

Hello

found the answer, take the ~/ bit out, so:

App_Data/database.mdb will just look at the current directory for the folder
App_Data.

James
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top