Hi,
I have a class in which i'm trying to load a config text file that resides in the current directory. in the aspx file i can do a simple Server.MapPath("config.txt"
to get the full path of the file (c:\inetpub\ etc..
inside the class however, i can't get Server.MapPath to work..
Diretory.GerCurrentDirectory() returns c:\WinNT\system32 so that try didn't work.
anyone know how i can grab a file in the current directory from a .cs class?
thanks
I have a class in which i'm trying to load a config text file that resides in the current directory. in the aspx file i can do a simple Server.MapPath("config.txt"
inside the class however, i can't get Server.MapPath to work..
Diretory.GerCurrentDirectory() returns c:\WinNT\system32 so that try didn't work.
anyone know how i can grab a file in the current directory from a .cs class?
thanks