John Baird
Coatesville, Pennsylvania, United States
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only