Murach's ASP.NET 2.0 with C# 2005
How to develop user controls

This chapter shows you how to group multiple elements into a single user control that can be used on multiple pages in a web site. Then, when changes occur, you can modify the user control instead of having to make changes on every page.

Chapter 24 How to develop user controls
An introduction to user controls 726
A web page that contains three user controls 726
A procedure for creating and using user controls 726
How to create user controls 728
How to add a user control to a project 728
How to design a user control 728
How to code a user control 730
How to expose properties, methods, and events 732
How to use user controls 736
How to add a user control to a web form 736
The aspx code that's generated when you add a user control to a form 738
How to write code that works with properties, methods, and events 740
The ProductDisplay user control 742
The design 742
The ascx file 742
The code-behind file 742




Murach's ASP.NET 2.0 with C# 2005

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.