O'Reilly logo

ASP.NET by Example by Steven A. Smith

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

Bringing It All Together

By using the validation controls you learned about in this chapter, it is possible to create very sophisticated forms with a minimum of code. To demonstrate this capability, we will combine all the examples we have looked at so far in this chapter into one form, and combine this with a ValidationSummary control to provide a summary of all errors found on the form. This example also includes one new validation for ensuring that a user's password and confirmed password match.

In the interests of conserving space, we won't display the full source code for this example here. Figure 8.5 shows what the end result looks like with a few errors. You can see the live version of this example with full VB and C# source code at

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