I have a second sample chapter from my book, “Microsoft .NET Framework 3.5—ASP.NET Application Development”. This sample is the full version of chapter 10, “Creating Custom Web Controls”; you can download it by clicking the link at the end of this post.
I wrote this chapter based on what I believe developers need to succeed when writing most Web applications inside of ASP.NET. For this reason, I first focused on creating basic user controls. This is a principal skill required by ASP.NET developers to enable fast, straightforward code-reuse and consistency across their Web application.
This first lesson of the chapter is all about user controls. This includes managing events, working with properties, consuming controls, and even dynamically loading user controls at runtime. I also covered templated user controls for those times when you need a custom layout for your user control’s UI representation.
The second lesson is the more advanced topic of custom Web server controls. These controls provide re-use across applications. They can be compiled separately, installed, versioned, and shared . You can use the techniques in this lesson to create UI controls that are similar to those you buy or use inside of Visual Studio. This includes features like Toolbox support, custom designers, default properties, and more.
I hope you enjoy this sample chapter. Like all chapters in the book, it includes detailed labs and questions designed to help you study for the certification exam. You can get access to the lab source code and answers to the sample questions by purchasing the book.
9780735625624_CH10.pdf (804.47 kb)