what does membership class provide?

Answer Posted / sudhakar k

Validates user credentials and manages user settings. This
class cannot be inherited.



Creating new users.

Storing membership information (user names, passwords, e-
mail addresses, and supporting data) in Microsoft SQL
Server or in an alternative data store.

Authenticating users who visit your site. You can
authenticate users programmatically, or you can use the
Login control to create a complete authentication system
that requires little or no code.

Managing passwords, which includes creating, changing,
retrieving, and resetting them, and so on. You can
optionally configure ASP.NET membership to require a
password question and answer to authenticate password reset
or retrieval requests for users that have forgotten their
password.

Although ASP.NET membership is a self-standing feature in
ASP.NET For authentication, it can be integrated with
ASP.NET role management to provide authorization services
for your site. Membership can also be integrated with the
ASP.NET user System.Web.Profile to provide application-
specific customization that can be tailored to individual
users. For details, see Understanding Role Management and
ASP.NET Profile Properties Overview.

The Membership class relies on membership providers to
communicate with a data source. The .NET Framework includes
a SqlMembershipProvider, which stores user information in a
Microsoft SQL Server database, and an
ActiveDirectoryMembershipProvider, which enables you to
store user information on an Active Directory or Active
Directory Application Mode (ADAM) server. You can also
implement a custom membership provider to communicate with
an alternative data source that can be used by the
Membership class. Custom membership providers inherit the
MembershipProvider abstract class. For more information,
see Implementing a Membership Provider.

By default, ASP.NET membership is enabled for all ASP.NET
applications. The default membership provider is the
SqlMembershipProvider and is specified in the machine
configuration with the name AspNetSqlProvider. The default
instance of the SqlMembershipProvider is configured to
connect to a local instance of Microsoft SQL Server.

You can modify the default settings to specify a
SqlMembershipProvider other than the AspNetSqlProvider
instance as the default provider, or specify an instance of
a custom provider as the default provider for your ASP.NET
application using the Web.config file. You can specify the
ASP.NET membership configuration for your Web application
using the membership configuration section in the
Web.config file. You can use the providers subsection of
the membership section to specify a membership provider
other than one of the default providers. For example, the
following membership section removes the default membership
providers from the current application configuration and
adds a new provider with a name of SqlProvider that
connects to a SQL Server instance named AspSqlServer.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is query string?

573


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

3409


What is the main difference between Asp.net and Vb.net?

569


What is authorization in asp.net?

575


What is difference between View State and Hidden Field in ASP.NET?

661






What New Features comes with ASP.NET Web API 2.0?

545


How asynchronous call can be implemented using delegates?

543


Describe state management in asp.net?

553


What are the authentication types in asp.net?

575


How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

550


Describe the method to create a permanent cookie?

584


What are the properties of the eventargs argument when capturing keyboard events?

546


Can you clarified A Web service can only be written in .NET or not?

540


Write some code using interfaces, virtual methods, and an abstract class`

1585


Describe the difference between inline and code behind - which is best in a?

572