from a class within the App_Code folder in ASP.NET, how can I access the path of the root directory of the website? I tried:
StreamReader sr = new StreamReader("../Questions.aspx");
But it gave me the path in Program Files…
So how can I do this? At least I thought I could navigate from the App_Code folder to the upper folder in directory
EDIT: I am not developping a web application, but a web site
Try using