Hi frnds
I m using Application.StartupPath but it move me to the myapp\bin\debug folder but i dont want that. what i want is only c:\inetpub\wwwroot\myapp
pls tell me how should i do this is there any predefined function or ive to jump back to myapp folder pls tell me how.
i was trying
Application.StartupPath + "..\\"
"..\\" to come out from the current folder but its not working
pls help
I m using Application.StartupPath but it move me to the myapp\bin\debug folder but i dont want that. what i want is only c:\inetpub\wwwroot\myapp
pls tell me how should i do this is there any predefined function or ive to jump back to myapp folder pls tell me how.
i was trying
Application.StartupPath + "..\\"
"..\\" to come out from the current folder but its not working
pls help
__________________
Jaish MathewsPosted May 4, 2010, 10:20 AM
This is the confusion happening normally. But below is the process following. If your application is Web, use below lines to get the root path
string rootPath = Server.MapPath(string.Empty);
For Windows application
Debug Mode
Release Mode