What are Custom Control and User Control?



What are Custom Control and User Control?..

Answer / 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

More C Sharp Interview Questions

6. If we assign a value in textbox on Page_UnLoad event, will it display?

2 Answers   Mphasis,


What is string class in c#?

0 Answers  


Why delegates are type safe?

0 Answers  


How can an inner class access the members of outer class?

0 Answers   Changepond,


What is difference between abstract class and interface in c#?

0 Answers  






What are different types of Delegates in C#?

0 Answers   PUCIT,


Are constructors inherited c#?

0 Answers  


Write a sample code to write the contents to text file in c#?

0 Answers  


What is use of list in c#?

0 Answers  


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

0 Answers  


Can two catch blocks be executed?

13 Answers  


Are arrays value types or reference types?

0 Answers  


Categories