O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

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

Building an ASP.NET User Control

Building a user control is similar to building an ASP.NET Web form. In fact, the easiest way to construct a user control is to build a Web page with the functionality you want for the control and then to convert the page to a control (which takes about 10 seconds). This way you can make sure everything works as expected before you convert the page.

Let’s take the code we wrote for our Biorhythm control in Chapter 8 and convert it to a user control. Figure 10-1 shows the Real-Time Web Biorhythms site.

Figure 10-1. An Internet surfer visits the biorhythms Web site.

A user surfs to your Web site and sees a calendar ...

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