protected void Page_Load(object sender, EventArgs e) { ScriptManager _scriptMan = ScriptManager.GetCurrent(this); _scriptMan.AsyncPostBackTimeout = 600; if (Session["LogFiles"] == null) { DataTable dt = getLogFilesDataTable(); Session["LogFiles"] = dt; } LogFilesTree.DataSource = (DataTable)Session["LogFiles"]; LogFilesTree.DataBind(); }
private List <String> getSelectedRows() { //System.Collections.ArrayList<String> list = new System.Collections.ArrayList<String>(); List <String> list = new List <String>(); TreeListNodeIterator iterator = LogFilesTree.CreateNodeIterator(); TreeListNode node; while (true) { node = iterator.GetNext(); if (node == null) { break; } if (node.Selected && !Convert.ToBoolean(node["isFolder"].ToString())) { list.Add(node["FullPath"].ToString()); } } return(list); }