Custom Controls are controls generated as compiled code (Dlls); those are easier to use and can be added to the 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
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 that. I apologize for the delay with 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.
- 1Bitbucket and Visual Studio
- 1How to dump and restore database in MongoDB
- 1How to compress and extract files/folders using the tar command on Ubuntu
- 5What is "marquee" tag and how I can use it in HTML?
- 1How To Create a New User and Grant Permissions in MySQL
- 1What is the difference between setTimeout and setInterval?
- 3What's the difference between using “let” and “var”?
- 1Abstract and Virtual Methods
- 1What is PATH, and when to use it in C++
- 1How to make my footer cover 100% height and width of the page from top?
- 0What is the difference between custom dimensions and metrics in Google Analytics