Path

G

Guest

I have written a web page where if a user clicks a button, a xml file is
generated and saved. I want to save the file in the folder that my project
is in. I can specify to save the file in
"c:\inetpub\wwwroot\folder\bin\test.xml", but I want to use the relative path
to specify the place to save it. How do I do this?
 
G

Guest

string strFullFileName = Server.MapPath ("test.xml"); //should get you the
full file path and name in the current directory
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top