Creating an AddressForm Control

Let’s end this section by creating a generally useful Web User control. We build an AddressForm User control that you can reuse in multiple pages or reuse multiple times in a single page (see Figure 7.3).

Figure 7.3. Displaying multiple address forms with the AddressForm User control.

image

The AddressForm User control is contained in Listing 7.10.

Listing 7.10. AddressForm.ascx

images

images

The AddressForm control contains form ...

Get ASP.NET 4 Unleashed 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.