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

What is the difference between parse and tryparse in c#?

566


Is predicate a functional interface?

591


What are the differences between value types and reference types?

632


What is verbatim literal in c#?

574


Can we make a Static Constructor Parameterized? Give Reason with your answer

643






How do I enforce const correctness in c#?

609


How to use exception handling in stored procedure?

628


Explain about Threading Types.

688


Explain the types of assemblies in .net?

602


Why do we need encapsulation in c#?

617


What is entity framework c#?

543


Why abstract class is not instantiated in c#?

607


What is difference between const and static in c#?

561


What is the difference between ienumerable and iqueryable?

535


What is arraylist?

601