Getting File Path in .NET From Code Behind
I would like to get the file path of the application and run a file from
codebehind.
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?
No comments:
Post a Comment