At the beginning, in order to implement the use of custom controls as soon as possible, the page is based on usercontrol. However, as the demand changes, it is especially planned to encapsulate the custom control in the DLL, and it is found that the custom control needs to be converted into a web control.
Briefly introduce the following ideas:
1. The web control can inherit from compositecontrol, which should be determined based on your implementation. Inherited ipostbackeventhandler
2. Overwrite databind to generate interface elements
3. Implement the raisepostbackevent method to handle the send-back event of the button
4. Declare proxies and events to facilitate developers to customize events
Welcome to: http: // 121.18.78.216, which is a demonstration platform for ease of query and analysis, workflow, content management, and project management.