예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            siteMap wSiteMap = new siteMap();
            
            siteMapNode sn = new siteMapNode();
            sn.Description = "Bigbang";
            sn.Title = "Bigbang";

            wSiteMap.SiteMapNode = sn;

             sn = new siteMapNode();
            sn.Url = "login.aspx";
            sn.Title = "Iniciar Sesión";
            sn.Description = "Iniciar Sesión";
            sn.ImageBig = @"~\Images\TreeView\IniciarSesionBig.gif";
            sn.ImageSmall = @"~\Images\TreeView\IniciarSesionBig.gif";
            wSiteMap.SiteMapNode.SiteMapNodes.Add(sn);

             sn = new siteMapNode();
            sn.Url = "xx.aspx";
            sn.Title = "xx Sesión";
            sn.Description = "xx Sesión";
            sn.ImageBig = @"~\Images\TreeView\IniciarSesionBig.gif";
            sn.ImageSmall = @"~\Images\TreeView\IniciarSesionBig.gif";
            wSiteMap.SiteMapNode.SiteMapNodes.Add(sn);

            textBox1.Text = wSiteMap.GetXml();

           
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            siteMap wSiteMap = new siteMap();

            siteMapNode sn = new siteMapNode();

            sn.Description = "Bigbang";
            sn.Title       = "Bigbang";

            wSiteMap.SiteMapNode = sn;

            sn             = new siteMapNode();
            sn.Url         = "login.aspx";
            sn.Title       = "Iniciar Sesión";
            sn.Description = "Iniciar Sesión";
            sn.ImageBig    = @"~\Images\TreeView\IniciarSesionBig.gif";
            sn.ImageSmall  = @"~\Images\TreeView\IniciarSesionBig.gif";
            wSiteMap.SiteMapNode.SiteMapNodes.Add(sn);

            sn             = new siteMapNode();
            sn.Url         = "xx.aspx";
            sn.Title       = "xx Sesión";
            sn.Description = "xx Sesión";
            sn.ImageBig    = @"~\Images\TreeView\IniciarSesionBig.gif";
            sn.ImageSmall  = @"~\Images\TreeView\IniciarSesionBig.gif";
            wSiteMap.SiteMapNode.SiteMapNodes.Add(sn);

            textBox1.Text = wSiteMap.GetXml();
        }