implement membership in asp.net
-
i want to implement membership in my project. i read about it...and find we can create roles using web site administration tool. but my requirement is that the client wants to change the roles of users on daily bases. how this can we achieved using roles in asp.net 2.0
One person's data is another person's program. --J.Walia
-
i want to implement membership in my project. i read about it...and find we can create roles using web site administration tool. but my requirement is that the client wants to change the roles of users on daily bases. how this can we achieved using roles in asp.net 2.0
One person's data is another person's program. --J.Walia
The best way IMO is to write your own system, not use the built in rubbish.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
i want to implement membership in my project. i read about it...and find we can create roles using web site administration tool. but my requirement is that the client wants to change the roles of users on daily bases. how this can we achieved using roles in asp.net 2.0
One person's data is another person's program. --J.Walia
You have to do it programmatically..! for eg:to find the roles of the user
Response.Write (User.Identity.Name + " is a member of " + Roles.GetRolesForUser().Length + " Roles.<BR>");
Response.Write("User Roles" + "<BR>"); foreach (string role in Roles.GetRolesForUser()) { Response.Write(role.ToString() + "<BR>"); } Response.Write("All Roles" + "<BR>"); foreach (string role in Roles.GetAllRoles()) { Response.Write(role.ToString() + "<BR>"); }
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
You have to do it programmatically..! for eg:to find the roles of the user
Response.Write (User.Identity.Name + " is a member of " + Roles.GetRolesForUser().Length + " Roles.<BR>");
Response.Write("User Roles" + "<BR>"); foreach (string role in Roles.GetRolesForUser()) { Response.Write(role.ToString() + "<BR>"); } Response.Write("All Roles" + "<BR>"); foreach (string role in Roles.GetAllRoles()) { Response.Write(role.ToString() + "<BR>"); }
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
How does that allow him to change roles ? Can he add roles and remove them programatically too ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
How does that allow him to change roles ? Can he add roles and remove them programatically too ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
The best way IMO is to write your own system, not use the built in rubbish.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
i want to implement membership in my project. i read about it...and find we can create roles using web site administration tool. but my requirement is that the client wants to change the roles of users on daily bases. how this can we achieved using roles in asp.net 2.0
One person's data is another person's program. --J.Walia
Take a look at the Roles class[^] You can create, delete and read roles, as well as adding and removing users to and from roles For instance, you can show a gridview with all users and a checkboxlist with all the available roles that can be assigned to the selected user
Alexei Rodriguez
-
i want to implement membership in my project. i read about it...and find we can create roles using web site administration tool. but my requirement is that the client wants to change the roles of users on daily bases. how this can we achieved using roles in asp.net 2.0
One person's data is another person's program. --J.Walia
-
i m confused now... what to do?? should i use membership or not??
One person's data is another person's program. --J.Walia
I would certainly start by using the Membership class, as it hides a lot of the database interaction from you and provides a reasonable basic user management system that works with SQL Sever, mySQL, etc. It includes everything you need to get your head around, including encrypted passwords, user approval, roles, and applications so you can concentrate on your logic, rather than re-inventing the wheel. When you need to extend, then look at deriving from Membership first.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones