Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Items
Message
De
24/09/2004 12:09:02
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00945353
Message ID:
00945761
Vues:
22
Shawn,

>Can i embedded a sting property on the node, like the tag property and then macro execuete that code???

Yes, you can do that ... but dynamically executing code like that isn't as easy as it was in VFP. See Rick's white paper for how to do it:
http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm

Because it's more work to dynamically execute the code, I would opt for using a simple switch statement in the AfterSelect event handler as I originally suggested. But, maybe that's just me ... <g>

~~Bonnie



>Thanks Bonnie,
>
>>AFAIK, there are no events for Nodes ... the only event you can use is the AfterSelect ... and yes, use a switch statement.
>
>Can i embedded a sting property on the node, like the tag property and then macro execuete that code???
>
>Something like i did in FoxPro, the TAG feild held a object reference and then all i did was execute the tag code.
>
>
>--> Shawn
>
>>
>>~~Bonnie
>>
>>
>>
>>>Thanks Bonnie,
>>>
>>>But what i want to do is bind the node to an event at the time of creation of the node.
>>>
>>>In your idea i would have to do a switch statement right?
>>>
>>>--> Shawn
>>>
>>>
>>>>Shawn,
>>>>
>>>>In the AfterSelect EventHandler for the TreeView, you can determine which TreeNode was selected and process accordingly.
>>>>
>>>>~~Bonnie
>>>>
>>>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform