In a standard, generated list view, how can I hide certain ActionLinks based on the roles the logged in user belongs to?
How to construct HttpPostedFileBase?
1:How to resolve issue with image path when testing HtmlHelper?
My friend wrote up this blog post around supporting multiple roles in security checks without "magic strings". Is a HTML helper a place for Business Logic? (He discusses action links at the end.) I also have a comment there. Is this code business logic or presentation logic?I recommend putting the logic to determine permissions into your view model so this you don't clutter your view with permission checks.. Sending collection of items in ASP.NET MVCASP.NET MVC forces an AJAX request be redirected to the login page when the FormsLogin session is no longer active