Is it possible to detect which directory a file is running from.
For example if my page "page1.aspx" was loaded from within a folder "myfolder" is there any way page1.aspx can detect this ?
Thanks in advance
Printable View
Is it possible to detect which directory a file is running from.
For example if my page "page1.aspx" was loaded from within a folder "myfolder" is there any way page1.aspx can detect this ?
Thanks in advance
Server.MapPath("") will do it if u are workin with asp.net pages
if u're with a win app use
Application.StartupPath