Link to home
Start Free TrialLog in
Avatar of Stacie
StacieFlag for United States of America

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.

   @Html.ActionLink("Edit", "Edit", new { id=item.RecordID }) |
                        @Html.ActionLink("Details", "Details", new { id=item.RecordID }) |
                        @Html.ActionLink("Delete", "Delete", new { id=item.RecordID })

Open in new window


I use this for my window Authentication

[Authorize(Users = @"xxx/xx")]
Under my controler
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial