This is a migrated thread and some comments may be shown as answers.

How do I find the path to a folder?

2 Answers 445 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 20 Feb 2020, 05:50 PM

I'm a novice with Telerik, I want to know how to find the path to a folder with Webform. 

For example: 

In the WinForm, Application.ExecutablePath is able to get the main path, is there is a way to retreive the same file with a webform ?

2 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 20 Feb 2020, 06:29 PM
I resolved the issue with Request.PhysicalApplication to access the root path.
0
Vessy
Telerik team
answered on 21 Feb 2020, 08:38 AM

Hi Jay,

Thank you for the update - I am glad you have found a solution that fits your needs.

The other option that I have just suggest you in your other thread on the matter is to use the Server.MapPath() method in order to get the physical path for a virtual one. For example;

        string path = Server.MapPath("~/Root/folder1");


Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
FileExplorer
Asked by
Jay
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or