"menu restriction using user roles"

Posted by Prakashrajmca under ASP.NET on 1/6/2012 | Points: 10 | Views : 1242 | Status : [Member] | Replies : 2
hi guys,

i want to create menu restriction for particular users such as administrator, normal user.
in asp.net how to create users and roles through that how can i achieve menu access restriction.




Responses

Posted by: Ogipansrk on: 1/6/2012 [Member] Starter | Points: 25

Up
0
Down
Prakashrajmca ,

You can use Asp.net membership concept to Create Roles and Users.
And, you can use SiteMap feature of asp.net, through which u can control Menu Option.
The sitemap works with memebership , with baisc settings in webcofig.

Hope this helps!
Ogipansrk

Prakashrajmca, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 1/7/2012 [Member] Silver | Points: 25

Up
0
Down

You can have a roleMaster table and then keep the role id in the menu table , so when user logs in it will check the role and accordingly populate the menu


Thanks,
Sanjay

Prakashrajmca, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response