AllendeL4S
Perch
Hi guys,
This one is for ASP.Net developers...or anyone who can help me.
I have a folder right in the root of my website:
C:\Inetpub\vhosts\mydomain.com\MyFolder
I will have a template file in there which my app will access, modify and save later on.
How can I build a path so my app can reach the file regardless of the relative path of the class accessing it? I'm trying to do it taking the website root as starting point and then moving to the actual folder.
I've tried: "~/MyFolder" but it goes to: 'c:\windows\system32\inetsrv\~\MyFolder\Source.html'.
Thanks.
This one is for ASP.Net developers...or anyone who can help me.
I have a folder right in the root of my website:
C:\Inetpub\vhosts\mydomain.com\MyFolder
I will have a template file in there which my app will access, modify and save later on.
How can I build a path so my app can reach the file regardless of the relative path of the class accessing it? I'm trying to do it taking the website root as starting point and then moving to the actual folder.
I've tried: "~/MyFolder" but it goes to: 'c:\windows\system32\inetsrv\~\MyFolder\Source.html'.
Thanks.