Introduction to User Controls

Chances are, if you are currently an ASP developer, the term code reuse conjures up images of a seemingly endless series of include files that has come to be known in Web development circles as spaghetti code. Aptly named, this phenomenon can be the byproduct of ASP include statements to include either subroutines or inline presentation markup used by more than one ASP page. While providing some benefits, such as allowing changes in included files to cascade across the site, the include statement makes debugging more difficult. Most of us have felt the pain of stepping through another developer's code searching through a chain of included files looking for a particular function declaration.

ASP.NET attempts to alleviate ...

Get ASP.NET by Example 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.