I need to create a general action menu for my pages. On all pages, some basic functions will be implemented, that is, adding new rows to any table, editing them, calling filters. To perform this function, many of these pages will require only basic logic. But some pages will implement their own logic for the options in the menu.
I want this to happen using the events in the menu. Therefore, I need not only events, but also a basic event handler for all pages. And this handler must be built in such a way that it can be overestimated. The problem is that I do not know how to create a handler for future use of the menu. Sounds somehow utopian. Is it really possible to create such an architecture?
I thought of two ways to do this: the main page or user control. But I don’t even know if this is possible. So what do you think?
UPD: Support both answers about the main pages: you guys probably know what you're talking about. Thank you Sorry that the correct answer can only be selected once.
source
share