Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Net Web Control
Message
 
 
À
01/12/2008 10:01:42
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01364759
Message ID:
01366946
Vues:
10
>>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.

Thats great advice. Sometimes saying OOPs is good :o
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform