Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a treeview in asp.net web page and passed the file system as the nodes of the treeview.I would like to know, If the treeview is provided to display the file structure will it dispay my local system file structure or server machine file structure.?

Below is my code:

C#
Array drivesList= DriveInfo.GetDrives();      

for (int index = 0; index < drivesList.GetLength(0); index++)
{            
   string text = drivesList.GetValue(index).ToString();           

   TreeNode parentNode = new TreeNode(text);

   parentNode.PopulateOnDemand =true;

   TreeView1.Nodes.Add(parentNode);
}
Posted
Updated 27-Sep-13 23:58pm
v2

1 solution

it will show the server file structure
 
Share this answer
 
Comments
aravind06 28-Sep-13 6:28am    
How can i modify my code to access my local file system...
Zafar A khan 28-Sep-13 6:40am    
then Use java if ActiveX is enabled (java applet)
aravind06 28-Sep-13 6:43am    
My project is on asp.net
aravind06 28-Sep-13 6:43am    
can i use activex in asp.net?

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