PDA

View Full Version : canīt get TreeView to show


semla882
04-21-2008, 09:46 PM
Iīm very new to this ASP.NET thingy so my question is probably of the more stupid kind but hey! :)

I have an XML file that I want to display in one way or another.
I was looking around on the asp.net quickstart tutorials and found the TreeView with the XMLdatasource. I thought this would be an easy way to display the xml data as itīs more or less the way I want it to be displayed but....In my noob ways I thought I could take the code, change it to my values and voila!...but no.

I upload the page to my server, the html parts of the page is shown but not the treeview. What am I missing?
The form element is placed within a div tag, not sure if that makes any diffrence.

Hereīs a link to the code I used: http://quickstarts.asp.net/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/ctrlref/navigation/TreeView/TreeView12.src

Feel free to direct me to tutorials or other thread on teh same topic.

thank you :)

mjlorbet
04-21-2008, 11:14 PM
on the tree view object, if you select it you should see a little arrow at the top right pointing to the right, click on it & select the databinding option (not quite sure what it's called, it'll walk you through setting it up). if you're 100% certain you have set the values to bind properly, make sure the xml file is where the control is expecting it to be (ie. on the server, in the same folder (or whatever relative path you're using to get to it), if you're setting up the control in server side code then use mappath to get the appropriate actual location on the server).

semla882
04-24-2008, 03:18 PM
Thx for the reply.....not so fast to reply *points to self* :)

I realized a day ago that the problem I had was basiclly server related but thx for the reply, I hadnt got the correct mappath either so that helped :)

thx