Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: treeview - to get a value ( not the text) on some event


Message #1 by "asif" <asifsaud@r...> on Wed, 13 Feb 2002 14:28:45
I used the ID property of treeview but that has to start with a letter, 
cant there be a way with which we can use numbers in the ID attribute or 
property?









> hi there,
>         my problem is this...
>        for a treeviews selectedindexchange event I need to get a value 
and 
> not the text of a particular node...more like a text value pair in a 
> dropdown list..I'll try and be more clear..
>       for every node I need to display a text (example text= america ) 
but 
> I need to have a value for this which is unique and not supposed to be 
> displayed (say countryID="10"), so when a user selects a node (on 
anevent 
> like onSelectedIndexChanged event) I need to retrieve the value and not 
> the text for further processing. it is more like the text and value pair 
> in a dropdownlist, I need to retrieve some value on some event and not 
the 
> displaying text. I hope I'm clear. 
> if anyone knows how this can be done please help me.
> 
> thanx in advance,
> Asif

  Return to Index