Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Items
Message
From
24/09/2004 12:09:02
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00945353
Message ID:
00945761
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform