Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

CS0012 The type 'MvcHtmlString' is defined in an assembly that is not referenced

$
0
0
@Html.PagedListPager(Model, page => Url.Action("Index",
                                               new { 
                                                        page, 
                                                        sortOrder = ViewBag.CurrentSort, 
                                                        currentFilter = ViewBag.CurrentFilter 
                                                   }))

This throws an error:

CS0012 The type 'MvcHtmlString' is defined in an assembly that is not referenced

It happened once I tried to add pagination.

@Html.PagedListPager this part is the problem I think


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>