ASP.NET current directory

  • Thread starter Thread starter Progman
  • Start date Start date
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.
 
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...



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 

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