Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.Net Web Control
Message
From
12/12/2008 10:53:16
 
 
To
01/12/2008 10:01:42
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01364759
Message ID:
01366946
Views:
11
>>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

Previous
Reply
Map
View

Click here to load this message in the networking platform