This method returns True if the current user is a member of the specified role,
and False if he or she is not.
Summary
In this chapter, we examined the approaches you can use to secure your ASP.NET
applications. You learned how to create a simple login page, configure the
Web.config file to handle authentication and authorization, and check for user
names and passwords using a database.
ASP.NET 2.0s new membership features provide extraordinary built-in function-
ality, and we have explored a number of these features through this chapter. The
complete list of features is much larger, and, as we mentioned at the beginning
of this chapter, there are entire books that deal solely with this topic.
In Chapter 14, well learn to work with files and directories, and send email
messages using ASP.NET.
569
Summary
570

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition 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.