Click here to Skip to main content
15,896,726 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Reflect changes by not having to clear cookies or refresh pages on production after upgrade Pin
F-ES Sitecore7-Jul-17 2:40
professionalF-ES Sitecore7-Jul-17 2:40 
GeneralRe: Reflect changes by not having to clear cookies or refresh pages on production after upgrade Pin
Schatak11-Jul-17 19:05
professionalSchatak11-Jul-17 19:05 
AnswerRe: Reflect changes by not having to clear cookies or refresh pages on production after upgrade Pin
Richard Deeming6-Jul-17 1:41
mveRichard Deeming6-Jul-17 1:41 
GeneralRe: Reflect changes by not having to clear cookies or refresh pages on production after upgrade Pin
Schatak24-Jul-17 20:25
professionalSchatak24-Jul-17 20:25 
GeneralRe: Reflect changes by not having to clear cookies or refresh pages on production after upgrade Pin
Richard Deeming25-Jul-17 0:31
mveRichard Deeming25-Jul-17 0:31 
QuestionMicrosoft.AspNet.FriendlyUrls Pin
Member 110895115-Jul-17 22:37
Member 110895115-Jul-17 22:37 
AnswerRe: Microsoft.AspNet.FriendlyUrls Pin
Richard Deeming6-Jul-17 1:38
mveRichard Deeming6-Jul-17 1:38 
QuestionHow to associate a role with action from my custom UI Pin
Mou_kol4-Jul-17 4:04
Mou_kol4-Jul-17 4:04 
often we attach role with action like below way
C#
[Authorize(Roles = "Admin, SuperUser")]

[Authorize(Users="Jacquo, Steve", Roles="Admin, SuperUser")]

Users : Comma-separated list of usernames that are allowed to access the action method.

Roles : Comma-separated list of role names. To Access the action method, users must be in at least one of these roles.

C#
[Authorize(Roles = "Producer")]
[Authorize(Roles = "Admin")]
public ActionResult Details(int id) {
    // Only available to users who are Producers AND Editors
}


now see authorize and role name is hard coded with action method. suppose action Details is associated with admin role which is hard coded but how could i attach more role to details action or remove any role from details action at run time. i guess it is not possible because asp.net mvc not providing anything built in.

i search google to see that anyone does it anything such as what i am looking for. unfortunately found no similar write up.

so i need some guidance that how could i develop a UI from where admin can associate role with action instead of hard coding at development time.

so tell me your think how could i associate a role or multiple roles with action from a custom UI.

also tell me how could i check at run time that user has that role when user try to access a specific action.

please discuss in details for designing this part what i am looking for. still it is not clear to you what i am looking for then tell me i will try to explain the same in more details.

thanks
AnswerRe: How to associate a role with action from my custom UI Pin
F-ES Sitecore4-Jul-17 4:17
professionalF-ES Sitecore4-Jul-17 4:17 
QuestionLDAP Group List for Windows User Pin
Dirk Bahle3-Jul-17 9:56
Dirk Bahle3-Jul-17 9:56 
AnswerRe: LDAP Group List for Windows User Pin
F-ES Sitecore3-Jul-17 23:15
professionalF-ES Sitecore3-Jul-17 23:15 
QuestionGet the query string with parameteres ( parameter value can be change) Pin
Member 44632353-Jul-17 1:35
Member 44632353-Jul-17 1:35 
AnswerRe: Get the query string with parameteres ( parameter value can be change) Pin
Richard Deeming3-Jul-17 1:51
mveRichard Deeming3-Jul-17 1:51 
QuestionMVC Application RoleManager issue after being deployed in Azure Pin
Farhad Eft29-Jun-17 4:54
Farhad Eft29-Jun-17 4:54 
AnswerRe: MVC Application RoleManager issue after being deployed in Azure Pin
F-ES Sitecore29-Jun-17 23:41
professionalF-ES Sitecore29-Jun-17 23:41 
Suggestionproject definition Pin
Member 1327996126-Jun-17 17:59
Member 1327996126-Jun-17 17:59 
GeneralRe: project definition Pin
Richard MacCutchan26-Jun-17 20:56
mveRichard MacCutchan26-Jun-17 20:56 
AnswerRe: project definition Pin
ZurdoDev27-Jun-17 9:54
professionalZurdoDev27-Jun-17 9:54 
QuestionHow to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14323-Jun-17 12:41
indian14323-Jun-17 12:41 
AnswerRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore25-Jun-17 23:01
professionalF-ES Sitecore25-Jun-17 23:01 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14326-Jun-17 8:28
indian14326-Jun-17 8:28 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
jkirkerx26-Jun-17 13:26
professionaljkirkerx26-Jun-17 13:26 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
F-ES Sitecore26-Jun-17 22:53
professionalF-ES Sitecore26-Jun-17 22:53 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
indian14327-Jun-17 7:17
indian14327-Jun-17 7:17 
GeneralRe: How to navigate from one page to another in ASP.Net MVC and Web Api application Pin
Richard Deeming27-Jun-17 9:31
mveRichard Deeming27-Jun-17 9:31 

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.