Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I am trying to bind an xml file to a tree view. I get the following error when attempting to designate which attribute of a node will be the target or link:

 

Error Parsing Control: Could not bind to the 'Nav' Property (specified by NavigateURLField) while data binding TreeView. Check the Bindings fields.

 

Here is an example of the nodes I am attempting to bind to:

 

<TreeNode Title="Fugue" Nav="fugue.htm"/>

 

Can anyone tell me what I may be doing wrong?

 

Caeanis

Posted

Addition info...

 

I might also add that the target for the url is another frame. I know I can use a target attribute to set this but setting this or the NavigateURLField to an existing attribute produces the the aforementioned error in VS2005. Any ideas would be appreciated. Thank you!

Posted

Well I got that figured out

 

Ok so I think I found out why it wasn't binding correctly. The attributes weren't consistent through the xml document, once I made sure that all the nodes had the referenced attributes it loaded fine.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...