Murach's ASP.NET 3.5 with VB 2008
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 27 How to develop user controls
An introduction to user controls 862
A web page that contains three user controls 862
A procedure for creating and using user controls 862
How to create user controls 864
How to add a user control to a project 864
How to design a user control 864
How to code a user control 866
How to expose properties, methods, and events 868
How to use user controls 872
How to add a user control to a web form 872
The aspx code that's generated when you add a user control to a form 874
How to write code that works with properties, methods, and events 876
The ProductDisplay user control 878
The design 878
The ascx file 878
The code-behind file 878




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.