private void BindDataForType() { DataTable table = new Tables.T_NewsTypes().Open("", "SiteID = " + base._Site.ID.ToString(), "[ID]"); if (table == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else { this.tv.DataTable = table; this.tv.DataBind(); foreach (TreeNode node in this.tv.Nodes) { node.NavigateUrl = ""; foreach (TreeNode node2 in node.ChildNodes) { node2.NavigateUrl = ""; } } string str = _Convert.StrToLong(Utility.GetRequest("TypeID"), -1L).ToString(); if (str != "-1") { ControlExt.SetTreeViewSelectedFromValue(this.tv, str); } else if (this.tv.Nodes.Count > 0) { this.tv.Nodes[0].Select(); } } }