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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -