Your ASP.Net code is executed on the server side. So if you fill your tree view using the following code:
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);
}
you will see the logical drives of your server (the drives visible for the user account IIS/your web server process is running on).
The function DriveInfo.GetDrives()
returns the logical drives of the computer the code is
running on (in your case the server machine).