O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required