void CreateSelectionTree (DataHandling Dh) { DataTable ZuordnungenUndDerenHaeufigkeit = Dh.GetZuordnungenUndDerenHaeufigkeit (); Label SelectedIs = new Label (); SelectedIs.CssClass = "CSS_SelectionLabel"; SelectedIs.Text = Session ["Selection"].ToString (); this.SelectionContentPlace.Controls.Add (SelectedIs); Label DateFromLabel = new Label (); DateFromLabel.CssClass = "CSS_SelectionLabel"; String Von = Session ["PrimaryFromDate"].ToString ().Substring (0, 10); if (Von == "01.01.0001") Von = "Beginn an"; DateFromLabel.Text = "<br>Zeit von: " + Von; this.SelectionContentPlace.Controls.Add (DateFromLabel); Label DateToLabel = new Label (); DateToLabel.CssClass = "CSS_SelectionLabel"; DateToLabel.Text = "<br>Zeit bis: " + Session ["PrimaryToDate"].ToString ().Substring (0, 10); this.SelectionContentPlace.Controls.Add (DateToLabel); TreeView AuswahlTree = new TreeView (); AuswahlTree.CssClass = "CSS_AuswahlTree"; this.SelectionContentPlace.Controls.Add (AuswahlTree); foreach (DataRow Entry in ZuordnungenUndDerenHaeufigkeit.Rows) { TreeNode Node = new TreeNode (Entry ["Name"].ToString () + " (" + Convert.ToString (Entry ["AnzahlDerEintraege"]) + ")", "", "", "Default.aspx?Selection=" + Entry ["Name"].ToString (), "_self"); AuswahlTree.Nodes.Add (Node); } AuswahlTree.Nodes.Add (new TreeNode ("Alle", "", "", "Default.aspx?Selection=All", "_self")); }