-
大小: 463KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-06-10
- 語言: C#
- 標(biāo)簽: ASP.NET(C#)??C#??樹??TreeView??樹形結(jié)構(gòu)??
資源簡介
ASP.NET(C#)樹形結(jié)構(gòu)(增、刪、改、排序+TreeView顯示)
ASP.NET(C#) C# 樹 TreeView 樹形結(jié)構(gòu)

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
public?partial?class?_Default?:?System.Web.UI.Page?
{
????Type_ClassBLL?tcbll?=?new?Type_ClassBLL();
????private?void?bind_tree(string?ChildNodes?TreeNode?tn)
????{???????
????????DataTable?dt?=?tcbll.GetByClassPre(ChildNodes).Tables[0];
????????foreach?(DataRow?dr?in?dt.Rows)
????????{
????????????TreeNode?Node?=?new?TreeNode();
????????????if?(tn?==?null)
????????????{????//添加根節(jié)點
????????????????Node.Text?=?dr[“ClassName“].ToString();????????????????
????????????????this.TreeView1.Nodes.Add(Node);
????????????????bind_tree(dr[“ClassID“].ToString()?Node);????//再次遞歸
????????????}
????????????else
????????????{???//添加當(dāng)前節(jié)點的子節(jié)點
????????????????Node.Text?=?dr[“ClassName“].ToString();
????????????????tn.ChildNodes.Add(Node);
????????????????bind_tree(dr[“ClassID“].ToString()?Node);?????//再次遞歸
????????????}
????????}
????}
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????this.bind_tree(“0“?null);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8853??2009-06-19?15:23??App_Code\BLL\Type_ClassBLL.cs
?????文件???????2358??2009-06-19?15:22??App_Code\Model\Type_Class.cs
?????文件??????10039??2009-04-15?18:37??App_Code\Utility\DBHelper.cs
?????文件????????934??2009-04-15?12:01??App_Code\Utility\StringHelper.cs
?????文件????1024000??2009-06-19?15:28??App_Data\Item.mdb
?????文件?????782336??2007-03-02?00:50??Bin\AjaxControlToolkit.dll
?????文件???????3072??2009-05-12?13:13??Bin\App_Licenses.dll
?????文件???????4608??2007-03-02?00:50??Bin\ar\AjaxControlToolkit.resources.dll
?????文件?????110592??2008-01-26?22:17??Bin\AspNetPager.dll
?????文件????????110??2009-05-18?09:51??Bin\AspNetPager.dll.refresh
?????文件?????376832??2005-09-30?17:31??Bin\CuteEditor.dll
?????文件??????45056??2005-09-22?21:55??Bin\CuteEditor.ImageEditor.dll
?????文件????????112??2005-10-18?21:45??Bin\CuteEditor.lic
?????文件???????4608??2007-03-02?00:50??Bin\de\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\es\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\fr\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\he\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\hi\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\it\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\ja\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\ko\AjaxControlToolkit.resources.dll
?????文件?????106496??2005-04-16?22:24??Bin\NetSpell.SpellChecker.dll
?????文件???????4608??2007-03-02?00:50??Bin\pt\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\ru\AjaxControlToolkit.resources.dll
?????文件?????135168??2005-10-10?00:34??Bin\Seaskyer.WebApp.Utility.dll
?????文件??????32768??2006-02-09?09:58??Bin\WebValidates.dll
?????文件????????112??2009-02-09?11:23??Bin\WebValidates.dll.refresh
?????文件???????4608??2007-03-02?00:50??Bin\zh-CHS\AjaxControlToolkit.resources.dll
?????文件???????4608??2007-03-02?00:50??Bin\zh-CHT\AjaxControlToolkit.resources.dll
?????文件??????13341??2008-05-11?14:58??images\file.gif
............此處省略32個文件信息
評論
共有 條評論