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 declare inout arguments in c#?

529


How big is a 64 bit integer?

501


What is difference between float and integer?

552


How to get the sum of last 3 items in a list using lambda expressions?

506


Can interface have virtual methods in c#?

463






Define acid rule of thumb for transactions in c#.

473


What are Namespaces?

558


How do you declare an interface in c#?

479


What is datatable and dataset in c#?

474


Can class be protected in c#?

513


What is the relation between classes and objects?

514


List some Advantages of switch-case over if else?

485


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

534


What is before string in c#?

483


Can partial class be inherited?

489