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 boolean method?

516


Why do we need to override in c#?

522


Why abstract class can not be instantiated?

448


Which class comes after the SortedList class?

566


What is concrete method in c#?

491






What are extension methods and where can we use them?

458


What's the difference between system.string and system.text.stringbuilder classes?

523


Why we use anonymous methods in c#?

488


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1681


What is a dimensional array?

462


What is private constructor c#?

494


What is cli in c#?

498


What is delegate in c#?

541


What are satellite assemblies?

558


Can you have parameters for static constructors?

531