S
Schoo
I have a working MS treeview control (from the webcontrols.dll) that is fed
with an XML file and a working SelectedIndexChange procedure. I need to
display a list of names, but then pass an ID number through the
SelectedIndexChange procedure. I modified my XML file so that I have an
extra attribute in the elements now:
<treenode text="Joe Blow" idEmp="12345">
I did this after looking closely at the "About the TreeView WebControl" at
msdn, but I don't see how you relay this value to the procedure. I guess I
am looking for something like this:
label1.text = Treeview1.GetNodeFromIndex(Treeview1.SelectedNode("idEmp"))
The above line doesn't work of course, but that is what I am thinking...
sorry... I'm a ADO guy and I think that way out of habit! It seems like I
am thinking of this in the wrong way.
The msdn explaination also makes it look like I might have to write XSL to
identify the attribute as a node ("Data Binding with XML and XSL Templates"
section). Is that necessary?
An example would be great!
Schoo
with an XML file and a working SelectedIndexChange procedure. I need to
display a list of names, but then pass an ID number through the
SelectedIndexChange procedure. I modified my XML file so that I have an
extra attribute in the elements now:
<treenode text="Joe Blow" idEmp="12345">
I did this after looking closely at the "About the TreeView WebControl" at
msdn, but I don't see how you relay this value to the procedure. I guess I
am looking for something like this:
label1.text = Treeview1.GetNodeFromIndex(Treeview1.SelectedNode("idEmp"))
The above line doesn't work of course, but that is what I am thinking...
sorry... I'm a ADO guy and I think that way out of habit! It seems like I
am thinking of this in the wrong way.
The msdn explaination also makes it look like I might have to write XSL to
identify the attribute as a node ("Data Binding with XML and XSL Templates"
section). Is that necessary?
An example would be great!
Schoo