Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Net Web Control
Message
De
01/12/2008 10:01:42
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
30/11/2008 20:20:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01364759
Message ID:
01364830
Vues:
17
>Dear all,
>
>Currently I am having an large web app with many forms using the .Net General control for example, ASP Button control. I need to able to add some code to the click event of the button controls on all the forms in my web app means i would like to create a control which will inherit the original control and apply to all my forms which using orriginal control.
>
>May I know how can be accomplish this easily in .NET or in MM.NET other than find and replace?


This is exactly the reason why you should create a subclass of each base control and use your own subclass in your programs. That way you insulate yourself from changes to the base controls when upgrading and you can easily add functionality.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform