ASP.NET current directory

P

Progman

I use Visual Studio 2005

When I run

msgbox Curdir(), I get the visual studio directory.

This problem seems to be only in the VB part. In the ASP, we use ~/etc... to
access files.

Why I dont get my project directory?

When I will FTP this project to the host, what will be the current directory
by default?

Should I do something to make sure the current directory is my project
directory.
 
J

Juan T. Llibre

Well, if you're 3 subdirectories down from the root,
Server.MapPath("~") will return the correct application root dir,
but I thought you were asking about the *current* directory
( the directory in which the current page is executing ).

In any case, if that's what you were looking for...
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top