Developing Web User Controls
Web user controls are similar to normal Windows controls: They consist of a number of other controls grouped together under one class. They expose properties, methods, and events like any other Web controls.
The base class for all Web user controls is UserControl. The user controls are treated as contained Web pages, which can be displayed only within the context of another page. Their main use is to provide a reusable group of controls, when the intention is to frequently use them in an application.
We will show an example of creating a simple menu-like selection list control that will post-back to the page when an item in the menu is selected, using a query string. This example also illustrates one of the more advanced ...
Get Visual Basic® .NET by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.