Tag helper not working properly
i've been debugging this for a few hours now, i don't understand what's wrong. it's working in my other project... so the problem is a tag helper that doesn't show up on the page. this is what html it results in:
this is what it looks like in code (i checked the viewmodel that i'm passing here, it's not null, the data gets correctly populated):
PagingInfo
contains a few properties related to pagination. the viewmodel contains it along with a collection of objects that need to be displayed on the page (which do get displayed properly)
imports are in place, pagination using a query string in the search bar works properly, but no buttons are displayed below!!! ugh. this is what it's supposed to look like (example from my other project. don't mind the link, it uses conventional routing instead of query string that i used for simplicity):
i'll send the PageLinkTagHelper.cs
in a message below4 Replies
oh my fucking god... the problem turned out the be this:
@addTagHelper *, WebApp.TagHelpers
which should've been @addTagHelper *, WebApp
how does that even make sense?!
there's literally @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
right above it
what a ridiculous issue
well, i'm glad it's over nowthe second parameter is an assembly name, not a namespace
that makes sense NOW but i had no clue
thanks