Murach's ASP.NET 3.5 with VB 2008
How to develop custom server controls

This chapter shows you how to create custom server controls that can be used in multiple web applications. As you'll see, they're more powerful than user controls, but also more difficult to develop and maintain.

Chapter 28 How to develop custom server controls
An overview of custom server controls 884
An introduction to custom server controls 884
How custom server controls compare with user controls 886
Three types of custom server controls 888
How to create a rendered control 890
The default class for a custom server control 890
How to override the Render or RenderContents method for a custom control 892
The design of the DaysUntil control 894
The code for the DaysUntil control 894
How to create and test a web control library 898
Step 1: Create a web control library 898
Step 2: Create the custom server controls 898
Step 3: Build the web control library 898
Step 4: Add the library to a web site 900
Step 5: Test the controls 900
Additional programming techniques for custom controls 902
How to use the HtmlTextWriter class to render HTML 902
How to use designer attributes 904
How to raise events in a custom control 906
How to create a superclassed control 908
Hwo to code a superclassed control 908
The design of the CaptionedBox control 908
The code for the CaptionedBox control 910
How to create a composite control 914
How to code a composite control 914
The design of the DateDDL control 916
The code for the DateDDL control 916




Murach's ASP.NET 3.5 with VB 2008

Learn more about this book

View the table of contents

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.