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 difference between ienumerable and ienumerator in c#?

695


What are interfaces in c#?

679


My switch statement works differently! Why?

673


What is the difference between int16 and int32 in c#?

611


How Global.asax is used ?

803


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

686


What language do desktop applications use?

668


What is callback in c#?

644


What is iqueryable and ienumerable in c#?

698


What is difference between association, aggregation and inheritance relationships?

676


Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana

1688


What is decimal in c#?

666


What is .net console?

731


What is join in c#?

668


What are extensions in c#?

717