Training
Certifications
Books
Special Offers
Community




 
Developing Microsoft® ASP.NET Server Controls and Components
Author Nikhil Kothari and Vandana Datye
Pages 724
Disk N/A
Level Int/Adv
Published 08/28/2002
ISBN 9780735615823
Price $59.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Companion Content
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 


Chapter 5: Developing a Simple Custom Control



5  Developing a Simple Custom Control

In Chapter 4, "User Controls: From Page to Control," we described declaratively authored user controls that are deployed as text files (.ascx and optional code- behind files). In this chapter, we will describe controls that are authored in code and deployed in the form of compiled class libraries. To differentiate between the two control authoring models, we will use the term custom control when referring to a control that is authored as a managed class and compiled before deployment.

You can develop custom controls by using any code editor and the .NET Framework SDK. In this chapter, we will describe the essential steps for authoring a custom control and show you how to enable design-time features that give your control a professional look and feel when it is used in a designer such as Visual Studio .NET. We will also show you how to compile a custom control using command-line tools that ship with the .NET Framework SDK. In addition, we'll describe how to debug a server control using command-line tools and using Visual Studio .NET. Because this chapter focuses on programming, we will not get into the details of authoring a server control in Visual Studio .NET. You can see those details in the topic "Walkthrough: Creating a Web Custom Control" in the .NET Framework SDK or MSDN documentation.


Next



Last Updated: August 27, 2002
Top of Page