O'Reilly logo

Professional ASP.NET Design Patterns by Scott Millett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Layering Your Application and Separating Your Concerns

WHAT'S IN THIS CHAPTER?

  • The benefits of a layered design over the traditional ASP.NET web forms code-behind model

  • The concepts of logic layering and the separation of your applications concerns

  • The responsibilities of each distinct layer in an enterprise level ASP.NET application

  • Example code refactoring from the Smart UI antipattern to a layered approach

This chapter discusses the concept of logical separation in an ASP.NET application. It covers the Smart UI antipattern and its shortcomings when used in enterprise-level ASP.NET applications. It then introduces the benefits of a layered approach to building an ASP.NET application over the code-behind model and what it means to truly separate your concerns. Following that, it looks at the role of each layer and identifies the responsibilities of each of them; the layers which form the content for the remaining chapters of this book.

APPLICATION ARCHITECTURE AND DESIGN

You cannot build a maintainable and scalable application on poor foundations. Planning a good architecture is critical to the success of an application. Before examining a structured approach to designing your application, you must learn why you need to think about the logical structure of your application and the problems you will encounter if you do not start with a good architectural footing.

Antipattern — Smart UI

ASP.NET web forms and Visual Studio make it incredibly easy to create applications simply by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required