Last post May 18, 2012 10:25 PM by sukumarraju
May 01, 2012 08:16 AM|jrtibayan|LINK
am i allowed to make my own form and insert to this table?
if i insert new role on this table will it change the website webconfig?
should i just manage the roles on Website ASP.NET Configuration or webconfig? or my own form that manages the aspnet_Roles table?
what do most companies do?
May 01, 2012 08:50 AM|jrtibayan|LINK
hmmm seems access Rules isnt stored in the ASPNETDB
does that mean i always have to either edit webconfig or use the Website ASP.NET Configuration to manage rules?
May 01, 2012 09:10 AM|jamshed alam|LINK
will you explaing in more detail what do u want to do?
May 01, 2012 09:53 AM|jrtibayan|LINK
id like to know how other developers manage the membership, access role and rules
from the book im reading it taught me that i have to use Website ASP.NET configuration and so i now know one way to do it
i want to do it differently than the book tho.. instead of adding the user by using the ASP.NET Configuration i add users from the builtin Register.aspx on the Account folder of an ASP.NET Web Site project template.
so i already have the means of adding new users to the ASPNETDB
what i need to manage now is the roles and rules.
or do most developers just manage the authorization Roles and Rules using the ASP.NET Configuration and webconfig file?
May 11, 2012 01:36 AM|jrtibayan|LINK
is there any way to delete a post?
i want to start a new one cause it seems this will forever be unresolved.
seems only the new posts are noticed by readers..
May 11, 2012 05:50 AM|Pince|LINK
Create an enumerator file and you can get your roles from that file
public enum Role
SuperAdmin = 1,
Admin = 2,
Manager = 3,
seller = 4,
Buyer = 5
Just save the roleID into DB
OR Create a master table for all roles and access from there.
May 12, 2012 04:59 AM|jrtibayan|LINK
i didnt get what this is for
what i want to do know the best way to Insert, Update and Delete Roles and also Access Rules
i know i can manualy open ASP.NET Configuration and add roles and access rules
is that the only way?
i think its kinda inefficient to open the project and access the ASP.NET Config from there
so id like to know if theres better way that is more preffered by developers
i also know i can change the access rules by opening the webconfig file
can you guys tell me if its the only way then if it is then i have to work with if
and if it is not please tell me a better way and more prefered by other developers to use
May 12, 2012 05:46 AM|Jo em|LINK
nope jrtibayan, ofcource theres alot of ways to do that.
Orchard CMS is a great one, you can find how Orchrd manage thier roles.
You can Implement your own
Role Provider and
May 18, 2012 02:34 PM|Frank Jiang - MSFT|LINK
In ASP.NET,Role management helps you manage authorization, which enables you to specify the resources that users in your application are allowed to access.Role management lets you treat groups
of users as a unit by assigning users to roles such as manager, sales, member, and so on.
After you have established roles, you can create access rules in your application.A typical use is to then create a set of pages that you want
to restrict to certain users.Often you isolate these restricted pages in a folder by themselves.Then you can establish rules that grant and deny access to restricted folders.For
example, you can configure the site so that members or managers have access to the pages in the restricted folder and all other users are denied access.If an unauthorized user tries to view a restricted page, the user
either sees an error or is redirected to a page that you specify.
If you want to insert, update and delete roles, ASP.NET contains
those API, you can create,delete role, add user to role,find user in role ect.Specific
If you want to enable
management for your asp.net application,you need to do the following things:
1. Configure Role Store
2. Configure Role Provider in Web.config
3. Create and Assign Roles
4. Perform Role-Based Authorization
For more details,please read
Use Role Manager in ASP.NET 2.0
May 18, 2012 10:25 PM|sukumarraju|LINK
This Chris's video walks through complete configuration