Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         int t = DataConverter.CLng(Request.QueryString["t"]);
         if (t == 0)
         {
             t = 1;
         }
         B_Node   bll = new B_Node();
         TreeNode tmpNd;
         tmpNd             = new TreeNode();
         tmpNd.Value       = "0";
         tmpNd.Text        = SiteConfig.SiteInfo.SiteName;
         tmpNd.NavigateUrl = "MyContent.aspx";
         tmpNd.Target      = "main_right";
         tmpNd.ImageUrl    = "";
         tmpNd.ToolTip     = "根节点";
         tvNav.Nodes.Add(tmpNd);
         bll.InitTreeNodeUser(tmpNd.ChildNodes, 0, t);
         tvNav.ExpandAll();
     }
 }