1、TreeView动态生成多层树结构;
public static string ConnectionString = "Data Source=ORCL18;user =delit;password=delit;";
public static OracleConnection con = new OracleConnection(ConnectionString);
DataSet ds;
DataSet ds1;
DataTable dt = null;
DataTable dt1 = null;
public string stry = null;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con.Open();
this.createDataSet();
this.createData();
con.Close();
//this.initTree(TreeView1.Nodes, "1");
initTreeBegin();
//TreeView1.CheckedNodes
}
}
private DataSet createDataSet()
{
ds = new DataSet();
string sqlstr = "select D