1. User control is generally a web page with gropu of controls while custom control is a single control inheriting from a specific control.
2. User control cannot be added to the tool box while Custom control can be added to the toolbox afetr compiling and adding the dll to the dotnet framework.
3. To make a usercontrol work, just drag and drop from the solution explorer. To make a custom control work, just drag and drop from the toolbox.
4. Every application needs to have a separate copy of the usercontrol to use it while for custom control, once it is compiled in the assesmpbly, all applications can use it.
5. User control cannot be compiled into dll while custom control can be compiled into a dll.
User control inherits from System.Web.UI.Page while custom control inherits from System.Web.UI.Page.Control
No comments:
Post a Comment