User Controls
A user control allows you to package frequently used user interface and the processing logic in such a way that it can be used as a pluggable component. This helps you attain the following two objectives:
This increases reusability of your code. The next time you need to add a similar functionality in your ASP.NET pages, just plug in this user control instead of rewrite similar code.
User controls help in encapsulating part of page user interface and logic, which in turn makes your pages easier to understand and maintain.
After you have created a user control, you can use it on your Web Forms just like any built-in server control. User controls can also expose a set of properties that you can customize to alter the behavior of the ...
Get Inside ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.