What are Custom Control and User Control?Ask a question
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.
That’s a good question that came up after the series in my blog. Someone asked why one should use a Custom Control instead of a User Control? Hence, let’s extend the series and discuss about that. I apologize for the delay of this post. I should have explained this at the start of the series, but actually my goal was to explain how to create and use a Custom Control in Silverlight.
It is better to do it later than never. Also, you are now familiar with Custom Control creation.
- 0C++ book guide and list
- 0undefined behavior and sequence points
- 1main function signature in C and C++
- 0What is the copy-and-swap idiom
- 0Pointless if-else and do-while in
- 0Difference between copy initialization and direct initialization
- 0C++: difference between 'struct' and 'typedef struct'
- 0public, protected and private inheritance
- 0Meanings of zero-, value- and default-initialization
- 0How do malloc() and free() work?
- 0What are external and internal linkage