Next Up: Custom Controls

Next Up: Custom Controls

User controls are powerful devices for capturing complex rendering and behavioral logic in reusable components that can be shared among developers and shared among Web pages. Because the ASP.NET output cache is ASCX-aware, user controls play an important role in performance tuning, too.

The first time I read about user controls, I flatly failed to understand their potential. Nice, I thought to myself. Maybe I ll find a use for them someday. Since then, I ve found more uses for user controls than I ever could have imagined. In fact, I ve come to believe that user controls are among the top three or four most important features of ASP.NET, if only for making Web applications perform better by permitting selected regions of a page to be served from a cache while other regions are generated anew in each request.

Web controls are also high on my favorite features list. Not just because the FCL includes a set of prepackaged controls, but because developers can write controls of their own, better known as custom controls, to supplement and extend what the FCL has to offer. Custom controls enjoy powers that user controls never dreamed of and are the key to extending ASP.NET. But don t take my word for it. Turn the page and see for yourself.



Programming Microsoft  .NET
Applied MicrosoftNET Framework Programming in Microsoft Visual BasicNET
ISBN: B000MUD834
EAN: N/A
Year: 2002
Pages: 101

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net