Like web forms, user controls can be created in the visual designer or they can be written with code separate from HTML. They can also support execution events. However, since web user controls are dynamically compiled at run time, they cannot be added to the toolbar, and they are displayed with a simple placeholder when added to the page.
This simplifies the use of web user controls if you are used to fully supporting Visual Studio.NET development time, including the Properties window and previewing project views. Also, the only way to share user control between applications is to place a separate copy in each application, which requires additional maintenance if you make changes to the control.
Web user controls are compiled code that makes them easier to use but harder to create. Web user controls must be created in code. Once you have created the control, you can add it to the toolbar and display it in the visual designer with full support for the property window and all other ASP.NET control development time functions. In addition, you can install a single copy of a custom control in the global assembly cache and share it between applications for easier maintenance.
Govardhan Feb 14 '11 at 18:05 2011-02-14 18:05
source share