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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -