What are Custom Control and User Control?

Answer Posted / padam

Custom Controls are controls generated as compiled code
(Dlls), those are easier to use and can be added to toolbox.
Developers can drag and drop controls to their web forms.
Attributes can be set at design time. We can easily add custom
controls to Multiple Applications (If Shared Dlls), If they
are private then we can copy to dll to bin directory of web
application and then add reference and can use them.
User Controls are very much similar to ASP include files, and
are easy to create. User controls can’t be placed in the
toolbox and dragged – dropped from it. They have their design
and code behind. The file extension for user controls is ascx

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create multifile assembly?

522


How big is a 64 bit integer?

517


Explain how can I get around scope problems in a try/catch?

497


What is inheritance in csharp?

528


in object oriented programming, how would you describe encapsulation?

567






Why do we need to override in c#?

531


what is .NET framework architecture ??

1571


Why generics are used in c#?

499


Are all methods virtual in c#?

543


What does it mean to override a method?

473


Is c# and .net same?

502


How to implement a singleton design pattern in c#?

484


Which is faster iqueryable or ienumerable?

577


What is short in c#?

542


Explain the difference between directcast and ctype.

469