Posted on: 12/26/2014 11:02:14 AM | Views : 663

I am populating tree from sql table , some nodes have links  to  files in directory located in the root of the site i developed , but when i click on a node nothing happens it cant be redirected to the file , but if the link was like : http://www.microsoft.com , when i click on the node it will open it .
below is the code :
private void GetChildRows(DataRow dataRow, TreeNode treeNode) { DataRow[] childRows = dataRow.GetChildRows("ChildRows"); foreach (DataRow row in childRows) { TreeNode childTreeNode = new TreeNode(); childTreeNode.Text = row["name"].ToString(); childTreeNode.NavigateUrl = row["navigateurl"].ToString(); treeNode.ChildNodes.Add(childTreeNode); if (row.GetChildRows("ChildRows").Length > 0) { ...

Go to the complete details ...