Click here to Skip to main content
15,915,703 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

I like to create two users admin and employee. The admin will have the privileges to enable or disable the controls.

Hance the employee can view only the enabled controls in the from by the admin.

Can this scenario can be achieved using asp.net MVC4.0?

If not which framework is suitable to achieve this.


Thanks in advance.
Posted
Comments
Pooja Dhanani 26-Sep-13 9:30am    
In Session store value that current user is Admin or not and accordingly enabled and disabled controls in view.
rajeshkool 26-Sep-13 9:37am    
Will this can be achieved in MVC4.0
rajeshkool 26-Sep-13 9:39am    
Hi Pooja,
Admin only going to enable and disable the controls. The end user will see only the enabled controls in their screen. Will this scenario can be achieved using MVC4
Pooja Dhanani 26-Sep-13 9:43am    
Yes, you can achieve. Only show that controls to user which has rights to see. Another alternative is,You can redirect to Admin and User to different Action Methods, so view will change functionality
rajeshkool 26-Sep-13 9:48am    
In my scenario the privileges for the controls are not fixed. It will be decided by the admin during run time. Enabling and disabling the control should be executed during run time by the admin.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900