Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi......
this is lokesh

my question is?

i want to display files and folders in grid view in asp.net

i searched all examples showing with in the website files only displayed (that mean where website is running in the folder)

but i want to map the physical directory like
exp:(another drives like where websiteis not running that drive i want)
E:\ramu\softwares\allfiles\data.xml
but

i tried like this

DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("./WebSite"));

but it showing only virtual directory



please any one help to me my request
Posted
Comments
Kenneth Haugland 10-Aug-12 22:56pm    
Who is doing what here, on the server or the local host?
Tarun Mangukiya 11-Aug-12 0:29am    
And you don't have permission to see the directory and files of client PC. So you can't...

1 solution

Website is not part of the folder path you provided. You can't see above the website root on the server, and you can't see the client file system at all, if you think you can,. you have no idea how ASP.NET works or what it does
 
Share this answer
 
Comments
lokesh lokesh 18-Aug-12 2:05am    
ok thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900