Click to See Complete Forum and Search --> : TreeView Node onClick?


Jedimark
January 26th, 2005, 11:47 AM
I'm using the new Visual Web Developer 2005 Express Edition Beta which gives me the ability to add a TreeView to an asp form.

I've look around for the answer to this question but I can't find any helpfull information (or I don't really know where to look)

but.. if I populate the TreeView with nodes etc, I want to add a function to my code so that if a user clicks an indivdual node on the webpage it knows what the value was.

Now there is some javascript embedded already in the code if you hover over the node a link appears, the link looks like this:

javascript:__doPostBack('ctl00$Main$TreeView1','s10.34.112.211.xml\\JEDIMARK!/!Mark')
But nothing happens when that is clicked (Well the page just reloads thats all)

Kind regards,
- Mark

PS - To put this into a bit of context see this screenshot:
http://www.lancaster.ac.uk/~rylander/sshot.JPG

So I want, for example, if a user then clicks on that "JEDIMARK\Mark" node I can then opperate on another function using "JEDIMARK\Mark" as an argument.