Add control to TreeView (ASP.NET 2.0)

Discussion in 'ASP .Net Web Controls' started by Moistly, Aug 25, 2006.

  1. Moistly

    Moistly Guest

    Is it possible to add, for exampl,e a button to a node of a TreeView?

    Thanks
    Moistly, Aug 25, 2006
    #1
    1. Advertising

  2. Moistly

    Henk Guest

    I'm trying to, but it isnt clear to me.

    I have a node
    dim node1 as new treenode.

    and add it to te treeview.:
    treeview.items.add(node1)

    so i can add a textbox how?
    node1.add(new textbox()) won't work!!


    "Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
    news:...
    > yup, you can add controls the nodes the same way you add to a web form.
    > .Node = new textbox() or html by doing .Text = "<asp:dropdownlist/>"
    >
    > roughly
    >
    > --
    > ________________________
    > Warm regards,
    > Alvin Bruney [MVP ASP.NET]
    >
    > [Shameless Author plug]
    > Professional VSTO.NET - Wrox/Wiley
    > The O.W.C. Black Book with .NET
    > www.lulu.com/owc, Amazon
    > Blog: http://www.msmvps.com/blogs/alvin
    > -------------------------------------------------------
    >
    >
    > "Moistly" <> wrote in message
    > news:...
    >> Is it possible to add, for exampl,e a button to a node of a TreeView?
    >>
    >> Thanks
    >>

    >
    >
    Henk, Sep 10, 2006
    #2
    1. Advertising

  3. Moistly

    Henk Guest

    "Henk" <> wrote in message
    news:45040cc5$0$18663$2.nl...
    > I'm trying to, but it isnt clear to me.
    >
    > I have a node
    > dim node1 as new treenode.
    >
    > and add it to te treeview.:
    > treeview.items.add(node1)
    >
    > so i can add a textbox how?
    > node1.add(new textbox()) won't work!!
    >
    >
    > "Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
    > news:...
    >> yup, you can add controls the nodes the same way you add to a web form.
    >> .Node = new textbox() or html by doing .Text = "<asp:dropdownlist/>"
    >>
    >> roughly
    >>
    >> --
    >> ________________________
    >> Warm regards,
    >> Alvin Bruney [MVP ASP.NET]
    >>
    >> [Shameless Author plug]
    >> Professional VSTO.NET - Wrox/Wiley
    >> The O.W.C. Black Book with .NET
    >> www.lulu.com/owc, Amazon
    >> Blog: http://www.msmvps.com/blogs/alvin
    >> -------------------------------------------------------
    >>
    >>
    >> "Moistly" <> wrote in message
    >> news:...
    >>> Is it possible to add, for exampl,e a button to a node of a TreeView?
    >>>
    >>> Thanks
    >>>

    >>
    >>

    >
    >
    Henk, Sep 11, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan
    Replies:
    1
    Views:
    5,395
    Christophe Gijbels
    Jan 4, 2004
  2. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    24,456
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  3. Dan
    Replies:
    5
    Views:
    347
  4. Replies:
    1
    Views:
    142
    murali.trichy
    Aug 10, 2005
  5. Ionutz
    Replies:
    2
    Views:
    528
    Ionutz
    Oct 23, 2005
Loading...

Share This Page