1.

User Controls Vs Custom Controls in ASP.NET?

Answer»
Custom Controls
User Controls
Compiled into their own ASSEMBLY(.dll)
Compiled into the web application assembly
Therefore, these can be added to the toolbox and can be used like any other existing controls.
Therefore, these cannot be added to the toolbox
Drag n DROP from toolbox
Drag n drop from solution explorer.
.ascx file is CREATED for each project in the solution
Complex to create.
Easier to create just like a web form.
They don’t have a designer. So, everything from a declaration of controls to rendering them has to be written through code.
They have designer ASSOCIATED with them, which makes it easier to create them.
Multiple copies of custom controls are not REQUIRED in the projects.
Every web app project requires its own copy of user control


Discussion

No Comment Found