Reputation: 1
I have a folder Called EG"myFolder" in a web application project. Programmatically i need to find the path. If I do Request.URl.AbosoluteURI it gives the full path How do I locate myfolder in this webproject?
Example http://localhost/mysite/myFolder
Upvotes: 0
Views: 206
Reputation: 35268
Hai jo,
Hi,
If you want to know all the path's of the Applicatiion then it would be best to use the following:
Application Physical Path: Request.PhysicalApplicationPath
Application Path: Request.ApplicationPath
Current Page Path: Request.CurrentExecutionFilePath
For the Bin folder path append the Applicaton Path + bin , and through this you can easily find out the Bin folder path.
Like all these you willl find all the Paths.
Upvotes: 1