Click here to Skip to main content
15,886,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: ASP MVC 5 application users Pin
AnCristina9-Jul-14 0:04
professionalAnCristina9-Jul-14 0:04 
GeneralRe: ASP MVC 5 application users Pin
Vi(ky10-Jul-14 2:18
Vi(ky10-Jul-14 2:18 
GeneralRe: ASP MVC 5 application users Pin
AnCristina11-Jul-14 20:57
professionalAnCristina11-Jul-14 20:57 
Questionbally chohan and baljinder chohan integration with same domain using php? Pin
gauravkumar027-Jul-14 23:14
gauravkumar027-Jul-14 23:14 
AnswerRe: bally chohan and baljinder chohan integration with same domain using php? Pin
Richard MacCutchan8-Jul-14 1:29
mveRichard MacCutchan8-Jul-14 1:29 
QuestionRe: bally chohan and baljinder chohan integration with same domain using php? Pin
Richard Deeming8-Jul-14 1:56
mveRichard Deeming8-Jul-14 1:56 
AnswerRe: bally chohan and baljinder chohan integration with same domain using php? Pin
Richard MacCutchan8-Jul-14 2:50
mveRichard MacCutchan8-Jul-14 2:50 
AnswerRe: bally chohan and baljinder chohan integration with same domain using php? Pin
Bernhard Hiller8-Jul-14 22:59
Bernhard Hiller8-Jul-14 22:59 
QuestionMovie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
SURESH_KATARI7-Jul-14 20:36
SURESH_KATARI7-Jul-14 20:36 
AnswerRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
thatraja7-Jul-14 21:08
professionalthatraja7-Jul-14 21:08 
GeneralRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
SURESH_KATARI7-Jul-14 21:19
SURESH_KATARI7-Jul-14 21:19 
AnswerRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
thatraja7-Jul-14 22:26
professionalthatraja7-Jul-14 22:26 
GeneralRe: Movie not loaded message when pointing embed src to "d:\abc\story.swf" Pin
SURESH_KATARI8-Jul-14 0:07
SURESH_KATARI8-Jul-14 0:07 
QuestionWeb API versions Pin
Mycroft Holmes7-Jul-14 16:31
professionalMycroft Holmes7-Jul-14 16:31 
AnswerRe: Web API versions Pin
Kornfeld Eliyahu Peter7-Jul-14 20:29
professionalKornfeld Eliyahu Peter7-Jul-14 20:29 

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.