NET improvements; custom server controls provide superior designtime
capabilities, simpler deployment, and finer control over functionality. Naturally, all the
benefits of custom controls do not come for free. Generally, custom controls require a longer
development cycle and a higher skill level from the development staff. The focus of this book is
on custom server control development with the goal of easing the learning curve and developing
some useful server control samples to help you get started.
Building a User Control
So far, we??™ve discussed user controls and custom server controls, and their benefits and differences.
User controls and server controls have differing strengths and trade-offs that we highlight in
this section by building two families of controls:
??? A static hyperlink menu control
??? A dynamically generated HTML table control
The example controls we present may seem simple and somewhat removed from real-world
web projects, but we do this for a reason. We believe that you must start simple and build toward
more complexity to achieve a deep understanding of the process. In upcoming chapters, we
explore controls that leverage the complete functionality available to controls in ASP.NET as
well as provide interesting capabilities.
Pages:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112