Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 31, 2012 04:48 AM by raja01
Member
375 Points
1033 Posts
Dec 30, 2012 04:21 PM|LINK
All-Star
27554 Points
4912 Posts
MVP
Dec 30, 2012 06:27 PM|LINK
Here's the easiest way to set roles for the user:
http://brockallen.com/2012/05/23/think-twice-about-using-roleprovider/
And then just use User.IsInRole("Admin") in your views/pages to conditionally hide/show elements.
76 Points
72 Posts
Dec 31, 2012 04:48 AM|LINK
hi
Try this...
Project --> Asp.net Configuration
now open a
Web Site Administration Tool
In this site you create different role
Thanks
-_-
Member
375 Points
1033 Posts
role assign
Dec 30, 2012 04:21 PM|LINK
BrockAllen
All-Star
27554 Points
4912 Posts
MVP
Re: role assign
Dec 30, 2012 06:27 PM|LINK
Here's the easiest way to set roles for the user:
http://brockallen.com/2012/05/23/think-twice-about-using-roleprovider/
And then just use User.IsInRole("Admin") in your views/pages to conditionally hide/show elements.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
raja01
Member
76 Points
72 Posts
Re: role assign
Dec 31, 2012 04:48 AM|LINK
hi
Try this...
Project --> Asp.net Configuration
now open a
In this site you create different role
Thanks
S.Raja Durai