Click here to Skip to main content
15,942,710 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: MVC Standard coding Pin
Richard MacCutchan10-Jan-17 21:29
mveRichard MacCutchan10-Jan-17 21:29 
AnswerRe: MVC Standard coding Pin
F-ES Sitecore10-Jan-17 22:53
professionalF-ES Sitecore10-Jan-17 22:53 
AnswerRe: MVC Standard coding Pin
koolprasad200311-Jan-17 17:14
professionalkoolprasad200311-Jan-17 17:14 
QuestionVJSCOR Assembly frequent error only in UAT environment Not in PROD Pin
deepak2612310-Jan-17 19:09
deepak2612310-Jan-17 19:09 
AnswerRe: VJSCOR Assembly frequent error only in UAT environment Not in PROD Pin
Richard MacCutchan10-Jan-17 21:26
mveRichard MacCutchan10-Jan-17 21:26 
GeneralRe: VJSCOR Assembly frequent error only in UAT environment Not in PROD Pin
deepak2612310-Jan-17 22:59
deepak2612310-Jan-17 22:59 
AnswerRe: VJSCOR Assembly frequent error only in UAT environment Not in PROD Pin
Richard Deeming11-Jan-17 2:12
mveRichard Deeming11-Jan-17 2:12 
QuestionHow to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC Pin
Tridip Bhattacharjee5-Jan-17 2:11
professionalTridip Bhattacharjee5-Jan-17 2:11 
I need to enable my admin user to change access permissions for users on the fly, such that they can create new Roles and add permissions to those Roles and assign that role to any user at run time.

I don't want to 'set' the roles during development, as in [Authorize(Roles="Role1, Role2")] etc because after development if i add roles to any user then again i have to recompile the code and copy the changed dll to project bin folder.

we often hard code the role name with authorized attribute but what if i need to do this kind of association at run time in asp.net mvc project. is it possible please discuss all your thought.

i have seen your have good control on role base access system development. so please guide me how can i add roles to action or controller at run time.if possible please discuss this topic with sample code.

thanks
tbhattacharjee

AnswerRe: How to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC Pin
Eddy Vluggen5-Jan-17 2:55
professionalEddy Vluggen5-Jan-17 2:55 
GeneralRe: How to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC Pin
Tridip Bhattacharjee5-Jan-17 3:41
professionalTridip Bhattacharjee5-Jan-17 3:41 
GeneralRe: How to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC Pin
Eddy Vluggen5-Jan-17 4:05
professionalEddy Vluggen5-Jan-17 4:05 
Questionasp.net_add two entries to the same selected row cell of table from different pages. Pin
Member 129357304-Jan-17 23:44
Member 129357304-Jan-17 23:44 
AnswerRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Afzaal Ahmad Zeeshan5-Jan-17 7:45
professionalAfzaal Ahmad Zeeshan5-Jan-17 7:45 
GeneralRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Member 129357305-Jan-17 22:01
Member 129357305-Jan-17 22:01 
AnswerRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Afzaal Ahmad Zeeshan5-Jan-17 22:10
professionalAfzaal Ahmad Zeeshan5-Jan-17 22:10 
QuestionFew questions regarding MCSD and MCPD exam for dotnet Pin
Tridip Bhattacharjee4-Jan-17 22:21
professionalTridip Bhattacharjee4-Jan-17 22:21 
AnswerRe: Few questions regarding MCSD and MCPD exam for dotnet Pin
Richard MacCutchan5-Jan-17 1:00
mveRichard MacCutchan5-Jan-17 1:00 
QuestionPassing Model info in MVC Pin
eejaynic2-Jan-17 8:27
eejaynic2-Jan-17 8:27 
AnswerRe: Passing Model info in MVC Pin
eejaynic2-Jan-17 13:42
eejaynic2-Jan-17 13:42 
QuestionCreate and Use an ASP.NET Core Website Template Pin
xiecsuk1-Jan-17 23:03
xiecsuk1-Jan-17 23:03 
AnswerRe: Create and Use an ASP.NET Core Website Template Pin
Afzaal Ahmad Zeeshan2-Jan-17 21:53
professionalAfzaal Ahmad Zeeshan2-Jan-17 21:53 
GeneralRe: Create and Use an ASP.NET Core Website Template Pin
xiecsuk2-Jan-17 22:29
xiecsuk2-Jan-17 22:29 
Questiontargeting .js files into different directories using typescript and tsconfig file - need really some help Pin
indian14331-Dec-16 5:51
indian14331-Dec-16 5:51 
QuestionCalling get method using typescript - need really some help Pin
indian14331-Dec-16 5:40
indian14331-Dec-16 5:40 
QuestionHow Can I Expand the Field Name Column in an MVC Details view? Pin
Member 1282452923-Dec-16 14:41
Member 1282452923-Dec-16 14:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.