asp.net mvc - Why is my role check gone after I added a paging? -
i have parts of view dependent on if user authenticated , role. example:
@*@model ienumerable<project.models.class>*@ @model pagedlist.ipagedlist<project.models.class> @using pagedlist.mvc; <link href="~/content/pagedlist.css" rel="stylesheet" type="text/css" /> @if (request.isauthenticated && user.isinrole("canedit")) { <div> @html.actionlink("create new", "create") </div> }
but after adding in paging, i've lost ability , can no longer see authenticated links?
Comments
Post a Comment