To learn more about how to manually call the rendercontrol, manually call the rendercontrol method of the control, and do not execute the onprerender method. Some webpages need to dynamically create server controls in the background andCodeWrite to the specified htmltextwriter.
If you only call the rendercontrol method to output the HTML content of the server control, but it does not execute onprerender, the server control usually overwrites the onprerender method to implement many important functions. we cannot discard it. flying Pigeon book: http://www.freeeim.com/
The solution is to publish a method in the server control. You can call the onprerender method in the method. Before manually calling the rendercontrol method, you can manually call this public method.
Another solution is to create a container control and use the Container Control controls. add loads our control and then adds the container control to the page. Be sure to set the CSS style of the Container Control to style = "display: none" so that the page effect will not be affected.
On the client side, you can reference the HTML Flying Pigeon text in the preceding container control.