TreeNode Binding Error when using Data property of XmlDataSource control...

Discussion in 'ASP .Net' started by Charlie@CBFC, Dec 14, 2006.

  1. Charlie@CBFC

    Charlie@CBFC Guest

    Hi:

    I get a TreeNode binding error when using Data property of XmlDataSource
    control. When I switch to TextFile property and point to xml file on hard
    drive, problem goes anyway. I'm initializing Data property with xml string
    that matches file exactly. Seems to be problem with binding because if I
    remove bindings, tree works both ways. I'm binding on server like so...

    TreeNodeBinding bind = new TreeNodeBinding();
    bind.DataMember = "Category";
    bind.TextField = "CategoryName";
    TreeView1.DataBindings.Add( bind );

    Thanks,
    Charlie
     
    Charlie@CBFC, Dec 14, 2006
    #1
    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. Jordan
    Replies:
    2
    Views:
    2,549
    Jordan
    Feb 10, 2004
  2. tanya foster
    Replies:
    3
    Views:
    3,763
    tanya foster
    May 18, 2006
  3. Charlie@CBFC

    XmlDataSource: Problems with Data property

    Charlie@CBFC, Dec 14, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    317
    Charlie@CBFC
    Dec 14, 2006
  4. LaHorn2
    Replies:
    0
    Views:
    292
    LaHorn2
    Jun 12, 2006
  5. Bill Nicholson
    Replies:
    1
    Views:
    143
    Phil H
    Sep 26, 2007
Loading...

Share This Page