SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the following to get the root directory of a website project:
String FilePath; FilePath = Server.MapPath("/MyWebSite");
Or you can get the base directory like so:
AppDomain.CurrentDomain.BaseDirectory