PhysicalApplicationPath returns the full path name, including the last backslash. So you might receive something like this:
C:\inetpub\wwwroot\WebApplication1
So, if you stored an XML file in the WebApplication1 directory, you might access it using the following code:
Dim myfile As string
myfile = Request.PhysicalApplicationPath & "DataFile.xml")
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.