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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access