Thursday, November 12, 2009

custom control Vs user control

  • What is difference between custom control vs user control?

Custom controlUser control
Are compiled and distributed in binary format.ascx
Custom control provide strong design time supportLimited design time support
Control authors must create their own classes which sub class from System.UI.ControlRelatively easy to create
Once compiled custom control can be added to toolbox and can be used same way as any .net controlUser controls are represented by placeholder
Properties can set via property windowProperties cannot set by property window

No comments: