文件名称:C#动态生成树型结构的Web程序设计.doc
文件大小:302KB
文件格式:DOC
更新时间:2013-07-04 03:27:21
C# 树型结构
private void GetTreeView() { try { string strSql = "SELECT DISTINCT Menu_id,Menu_name from docmodulemanager where Menu_level = 1 and sn in ("+All.Substring(0,All.Length-1).ToString()+")"; OracleDataAdapter objAdapter = new OracleDataAdapter(strSql,objConn); DataSet ds = new DataSet(); ds.Clear (); objAdapter.Fill(ds,"temp"); DataTable dt = ds.Tables["temp"]; TreeView1.Nodes.Clear();