Monday, 8 September 2014

What is the difference between User Control and Custom Control in c#?





User control
Custom controls
1) Reusability web page
1) Reusability of control (or extend functionalities of existing control)
2) We can’t add to toolbox
2) We can add toolbox
3) Just drag and drop from solution explorer to page (aspx)
3) Just drag and drop from toolbox
4) U can register user control to. Aspx page by Register tag
4) U can register user control to. Aspx page by Register tag
5) A separate copy of the control is required in each application
5) A single copy of the control is required in each application

6) Good for static layout
6) Good for dynamics layout
7) Easier to create
7) Hard to create

8)Not complied into DLL
8) Compiled in to dll

No comments:

Post a Comment