我的程序如下:
private void GetFoldersAndFiles(TreeNode tn)
{
string currentPath=tn.fullpath;

currentPath=currentPath.Remove(0,5); //设置当前文件夹
System.IO.DirectoryInfo folderInfo = new System.IO.DirectoryInfo (currentPath);
System.IO.DirectoryInfo[] folders;
try
{
//获取当前文件夹下的所有文件夹
folders = folderInfo.GetDirectories();
}
catch

return;
}
}
但是总是报错说:E:\c-exe\treeview\index.aspx.cs(56): “Microsoft.Web.UI.WebControls.TreeNode”并不包含对“fullpath”的定义
错误提示语句为:string currentPath=tn.fullpath;
这是怎么回事,我需要怎么做.谢谢!