I am making a treeview, I want to open a file on clicking the file node of treeview directory. What I did here as:
foreach (FileInfo File in currentDir.GetFiles())
{
TreeNode node = new TreeNode(File.Name, File.FullName);
node.SelectAction = TreeNodeSelectAction.SelectExpand;
node.PopulateOnDemand = false;
node.NavigateUrl = ResolveClientUrl(File.FullName);
node.ChildNodes.Add(node);
currentNode.ChildNodes.Add(node);
}
Unfortunately when I check the html, it is rendered as bellow: href="file:///D:/Training%2520Sessions/Enterprise%2520Portal/Zeeshan%2520H%2520Jafry%2520EP%2520session%2520-%2520Jul%252018%25202011%252006.39.15%2520PM.wmv"
the directory is local so I am unable to access this. What is the workaround of this problem please.