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

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top