title: Getting File Path in .NET From Code Behind
body: <p>I would like to get the file path of the application and run a file from codebehind.</p>
  
  <p>In my situation, I have a virtual directory set up with folders like [CSS,Javascript,AJAX,Images,SQLFiles]. In my App_Code folder, I have the .cs files for my codebehind. From those .cs files, I want to read a .sql file in the SQLFiles folder. How can I get the path of my virtual directory from the code behind in order to read the .sql file?</p>