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

First of all Sorry for my bad English

I am trying to do some MVC stuffs and am new to asp.net MVC also.Am working in a project having three user roles

1.admin
2.user
3.supervisor

Here am doing like i have the same page for all these three users and am changing the content of pages according to role.Everything is working fine with simple if condition when a user having only one role.But am stick on to something like if the user is having multiple roles then how i will render the page.For example if the user having both admin and supervisor role he/she wants to see both admin and supervisor contents.I planned to create tab like structure(admin tab and supervisor tab) and while clicking supervisor tab will show supervisor content. But i have some grids inside supervisor page and while am refreshing the grid its content is not refreshing.Am not recommending to create separate pages for separate role combinations also.Anyone please help me to acheive this

Thanks
Posted
Comments
Anele Ngqandu 12-Mar-15 9:26am    
maybe try to use razor to hide and show what you want using if statements, but you will load everything on pageload...
priyadarshini tv 18-Mar-15 1:50am    
That is wat am currently doing for single roles

Thanks

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