pointing to a file from aspx c#
Posted on 2011-09-22
I want my web page to point to a file, and I have placed the file in the same location as my aspx file, but when i try to look for the file, it can not find it inside teh .cs code
But this does not seem to be the case inside a aspx file, since that lookks at an image file which it does seem to find, both the image and the text file are in the same directory.
When I look at the current directory environment variable it is pointing me to a location where the webserver is but in there I do not see any of my files ...
I am not sure how i can get my cs code to point tot eh same directory to where the aspx file is actually located. Or i dont know how to add a pointer to a the file i want in the aspx file ..
any help would be appreciated ...