Prev | Current Page 145 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

NET to package
functionality. Server control encapsulation is more applicable when focused on generic logic.
User control encapsulation is more applicable when packaging application-specific logic.
User controls have the benefit of declarative UI development and require less skill from
the development staff. Custom controls provide bare-bones access to the ASP.NET plumbing,
myriad design options, a superior deployment mechanism as an assembly, and better Designer
support for the developer/user.
Custom controls typically inherit from System.Web.UI.Control, System.Web.UI.WebControls.
WebControl, or System.Web.UI.WebControls.WebPart and are built using one of two primary
techniques: direct rendering or control composition. The HtmlTextWriter class provides a
significant amount of assistance with rendering HTML content from a custom control through
its Write() and Render() methods. Custom controls that use control composition speed development
time by letting child controls handle their own HTML generation through the application
of good object-oriented design principles.
85
?–  ?–  ?– 
C H A P T E R 3
ASP.NET State Management
The need to maintain state in a web application has driven vendors and those who participate
in the evolution of web protocols to provide additional tools and standards to make life easier
for web developers.


Pages:
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157