Forum Moderators: open
I'm working with the code behind model in asp.net and I'm trying to figure out how to get relative filepaths.
For example, I'm trying to write my template to the page but I don't want to have:
'C:\sites\...\Templates\Template.txt'
in the code, I'd rather have:
'\Templates\Template.txt'
How do I go about doing this. Also if there are application wide variables that I wan't to be accisible to my class files where do I put them and how do I access them.
Thanks in advance