Click here to Skip to main content
15,914,447 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAuthorization not working in Classic mode(Application pools) Pin
sajithnet13-Jul-14 22:37
sajithnet13-Jul-14 22:37 
AnswerRe: Authorization not working in Classic mode(Application pools) Pin
Richard Deeming16-Jul-14 2:13
mveRichard Deeming16-Jul-14 2:13 
GeneralRe: Authorization not working in Classic mode(Application pools) Pin
sajithnet16-Jul-14 22:44
sajithnet16-Jul-14 22:44 
QuestionHelp with ASP.NET Event Calendar Pin
Member 1092961012-Jul-14 8:36
Member 1092961012-Jul-14 8:36 
QuestionWhat is Katna in asp.net Pin
Tridip Bhattacharjee10-Jul-14 21:29
professionalTridip Bhattacharjee10-Jul-14 21:29 
AnswerRe: What is Katna in asp.net Pin
thatraja10-Jul-14 22:03
professionalthatraja10-Jul-14 22:03 
AnswerRe: What is Katna in asp.net Pin
ZurdoDev11-Jul-14 1:51
professionalZurdoDev11-Jul-14 1:51 
AnswerRe: What is Katna in asp.net Pin
Praveen Dselva24-Jul-14 0:09
professionalPraveen Dselva24-Jul-14 0:09 
QuestionSetting the StatusCode of the response Pin
ThetaClear10-Jul-14 0:16
ThetaClear10-Jul-14 0:16 
QuestionRe: Setting the StatusCode of the response Pin
thatraja10-Jul-14 4:35
professionalthatraja10-Jul-14 4:35 
AnswerRe: Setting the StatusCode of the response Pin
ThetaClear10-Jul-14 7:36
ThetaClear10-Jul-14 7:36 
AnswerRe: Setting the StatusCode of the response Pin
thatraja10-Jul-14 21:58
professionalthatraja10-Jul-14 21:58 
GeneralRe: Setting the StatusCode of the response Pin
ThetaClear12-Jul-14 21:37
ThetaClear12-Jul-14 21:37 
GeneralRe: Setting the StatusCode of the response Pin
ThetaClear12-Jul-14 22:54
ThetaClear12-Jul-14 22:54 
AnswerRe: Setting the StatusCode of the response Pin
jkirkerx11-Jul-14 11:17
professionaljkirkerx11-Jul-14 11:17 
QuestionDynamic reports in asp.net Pin
Member 105902599-Jul-14 21:17
Member 105902599-Jul-14 21:17 
AnswerRe: Dynamic reports in asp.net Pin
thatraja10-Jul-14 4:37
professionalthatraja10-Jul-14 4:37 
AnswerRe: Dynamic reports in asp.net (Using Formula Fields) Pin
Vikas Joshi (Sofware Developer)14-Jul-14 21:53
Vikas Joshi (Sofware Developer)14-Jul-14 21:53 
QuestionTexbox OnKeyPress event thru javascript executes a button click event Pin
bjay tiamsic8-Jul-14 15:23
bjay tiamsic8-Jul-14 15:23 
QuestionGridView Structure Clone Pin
sakalans8-Jul-14 5:35
sakalans8-Jul-14 5:35 
AnswerRe: GridView Structure Clone Pin
thatraja9-Jul-14 0:44
professionalthatraja9-Jul-14 0:44 
QuestionASP MVC 5 application users Pin
AnCristina8-Jul-14 2:05
professionalAnCristina8-Jul-14 2:05 
AnswerRe: ASP MVC 5 application users Pin
Vi(ky8-Jul-14 2:27
Vi(ky8-Jul-14 2:27 
You need to create Roles & Permissions. You need to create a table (like "Roles") that store the Roles
In your app there is 4 Roles
1- Admin
2- HR Member
3- Managers
4- Employee

And need to store all the permissions in a Table (like "Permission" table).

for each Role you need to map the permissions means to specify what are the permission available for Admin, HR Member, Managers & Employee. To do this you need to create a table (like RolesPermission) that contains the Id of Role and also the Ids of Permission that "One To Many" mapping. like

ID RoleId PermissionId
1 1 1
2 1 2
3 1 4
4 2 4
5 2 5
... ... ...

After that you just need to assign the Role to the users. And where the user can access resources or not You just need to get Permissions of that user and check the permission that available to access the resources. If available then give access otherwise don't give access.
GeneralRe: ASP MVC 5 application users Pin
AnCristina8-Jul-14 6:51
professionalAnCristina8-Jul-14 6:51 
GeneralRe: ASP MVC 5 application users Pin
Vi(ky8-Jul-14 22:46
Vi(ky8-Jul-14 22:46 

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.