Components enable you to reuse application logic across multiple pages or even across multiple applications. For example, you can write a method named
GetProducts() once and use the method in all the pages in your website. By taking advantage of components, you can make your applications easier to maintain and extend.
For simple applications, you do not need to take advantage of components; however, as soon as your application contains more than a few pages, you’ll discover that you are repeating the same work over and over again. Whenever you discover that you need to write the same method more ...