gurbuzmete
asked on
ASP.NET Role Management and Modify Role's Name
Hi,
I want to change name of a role in ASP.NET Role Management .
For example i have a role named "administrators" and now i want to change its name as "administrators_2".
How can i do this ? In c# please..
Thank you.
I want to change name of a role in ASP.NET Role Management .
For example i have a role named "administrators" and now i want to change its name as "administrators_2".
How can i do this ? In c# please..
Thank you.
ASKER
i do not want delete created role ; once i have created a role, then i just want to rename it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi guys,
Re: i do not want delete created role ; once i have created a role, then i just want to rename it.
The solution I posted will do what gurbuzmete requested, the SQL script sample provided will rename the Role if implemented. Easy enough to wire it up to a button click and execute it.
Respectfully yours,
Alan
Re: i do not want delete created role ; once i have created a role, then i just want to rename it.
The solution I posted will do what gurbuzmete requested, the SQL script sample provided will rename the Role if implemented. Easy enough to wire it up to a button click and execute it.
Respectfully yours,
Alan
All,
Following an 'Objection' by alanwarren (at https://www.experts-exchange.com/questions/26572497/Automated-Request-for-Review-Objection-to-Delete-Q-26513544.html) to the intended closure of this question, it has been reviewed by at least one Moderator and is being closed as recommended by the Expert.
At this point I am going to re-start the auto-close procedure.
Thank you,
_alias99
Community Support Moderator
Following an 'Objection' by alanwarren (at https://www.experts-exchange.com/questions/26572497/Automated-Request-for-Review-Objection-to-Delete-Q-26513544.html) to the intended closure of this question, it has been reviewed by at least one Moderator and is being closed as recommended by the Expert.
At this point I am going to re-start the auto-close procedure.
Thank you,
_alias99
Community Support Moderator
Don't think you should delete the 'BuiltInRole' Administrators, that could be a bit dodgy, but you can create as many roles as you like on the fly by executing the roles provider stored procedures.
-- exec aspnet_Roles_CreateRole '/', 'administrators_2'
-- exec aspnet_Roles_GetAllRoles '/'
-- exec aspnet_Roles_DeleteRole '/', 'administrators_2', 0
hth
Alan