J
Jim Heavey
Hello, I am trying out how to programatically figure out where my datafile
is. I thought I could use Server.MapPath to provide me the name of where
my webpage is located, as I have used that in other situations, but this
situation is different. My web pages and data file do not reside on the
same drive as where the server resides, so Sever.MapPath is propbably not
the right method.
How do I find the path where my actual web page is located?
My goal is to have the file name in the "web.config" file and retrieve the
Location of where my web page is and append the folder name of "\Data\" and
then append the file name that I retrieved from the web config file.
Is there a way for me to do this?
is. I thought I could use Server.MapPath to provide me the name of where
my webpage is located, as I have used that in other situations, but this
situation is different. My web pages and data file do not reside on the
same drive as where the server resides, so Sever.MapPath is propbably not
the right method.
How do I find the path where my actual web page is located?
My goal is to have the file name in the "web.config" file and retrieve the
Location of where my web page is and append the folder name of "\Data\" and
then append the file name that I retrieved from the web config file.
Is there a way for me to do this?