The previous blog specifically introduced the provider of membership,
In fact, compared with the membership provider,
Role's provider does not seem to be anything,
There are not so many attribute settings as membership provider does,
In addition to several customizable attribute configurations, there are almost no other configurations under role,
Therefore, it is relatively simple,
Of course, I'm talking about the attribute configuration when setting in IIS,
In fact, if you directly configure the rolemanager section in Web. config,
There are still many attribute configurations that need attention,
First, to use the role function, you must first enable the role function,
There are several ways to enable it,
Use web. config to configure,
Use ASP. NET Website management tools for visual configuration,
After role is enabled, you can see the following configuration in Web. config,
Then, you can directly use ASP. NET Website management tools to create and manage the role,
I have previously introduced ASP. NET Website management tools (also introduced the role content)
After the role is enabled, let's take a look at its provider,
The default provider is aspnetsqlroleprovider,
Of course, you can also add a custom provider,
Well, I 've talked so much nonsense (in my opinion, the blog question is too big)
For the real introduction and use of role, start from the next blog.
2010-2-07