Stacie
asked on
How to I hide some link based on the type of user that I'm login.
I have a set of link that I will have to hide based on my window authentication. How do I do this? These link are from my grid. I will like to hide them if I'm a user x or show them if I'm a user y.
I use this for my window Authentication
[Authorize(Users = @"xxx/xx")]
Under my controler
@Html.ActionLink("Edit", "Edit", new { id=item.RecordID }) |
@Html.ActionLink("Details", "Details", new { id=item.RecordID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.RecordID })
I use this for my window Authentication
[Authorize(Users = @"xxx/xx")]
Under my controler
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.