IN THIS CHAPTER
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, there is no reason 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 ...