In part one of this series, we have introduced to you the
ASP.NET 2.0 application services including Membership, Role, and Profile
services. These services can be configured in a matter of few minutes inside
the Web.config configuration file and you can start making use of them in your
application.
In addition, ASP.NET 2.0 AJAX 1.0 Extensions application
services were covered too. These are client-side services that allow
applications, from the client-side JavaScript, to contact the application
services on the server. What happens is that, when you configure your
application to work with application services using JavaScript, client-side
proxies will be created on the client side to make it an easy task for the
JavaScript code to access the server services.
Moreover, a detailed overview was given on the Client
Application Services introduced by Visual Studio 2008 and .NET 3.5 that allows
client applications including Windows Forms and Windows Presentation Foundation
applications to access the same database used for user management by web and Ajax application. This feature depends on the ASP.NET 2.0 AJAX 1.0 Extensions application
services.
In this article we will demonstrate how to create a Web
application to host the ASP.NET 2.0 AJAX 1.0 Extensions Application Services,
create a Windows Forms application that will enable authentication and
authorization and show you how this client application will contact the web
host application for the purpose of authenticating users and authorizing them
to access specific sections of the resources present in the application.