当c#中的treeview数据随服务器上的文件系统和托管应用程序一起提供并从客户端计算机访问时,它将显示服务器系统文件还是本地系统文件? [英] When treeview data in c# is provided with filesystem and hosted application on server and accessing it from client machine , will it display server system files or local system files?

查看:79
本文介绍了当c#中的treeview数据随服务器上的文件系统和托管应用程序一起提供并从客户端计算机访问时,它将显示服务器系统文件还是本地系统文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net网页上创建了一个树形视图,并将文件系统作为树形视图的节点传递给我.我想知道,如果提供树形视图来显示文件结构,它将否付我的本地系统文件结构或服务器计算机文件结构.
以下是我的代码:

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:

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);
}

推荐答案

它将显示服务器文件结构
it will show the server file structure


这篇关于当c#中的treeview数据随服务器上的文件系统和托管应用程序一起提供并从客户端计算机访问时,它将显示服务器系统文件还是本地系统文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆