Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is better?
Message
From
07/04/2008 15:48:38
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01308825
Message ID:
01308834
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Is it ok from one control event call another control's event or it's better to have both call their own but reference an extra common function?
>
>Thanks in advance.

Hmm. I think you have to be a little more strict in your terminology. You can't call an event. You can only attach an EventHandler. So is your question really whether you should use the same EventHandler for events raised in different controls? If so, and the handling is identical then the answer is 'Yes' - why duplicate the code? If it's not identical then 'No' - since it obviously wouldn't work <s>
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform