Home > Back-end >  Link Tag is not working: Unclickable link
Link Tag is not working: Unclickable link

Time:03-13

I have this link below:

<a asp-page="./CreateNew">CreateNewLink</a>

Why is CreateNewLink not clickable after running the code?

CodePudding user response:

H Make Sure That you declare usage of taghelpers in _ViewImports.cshtml

@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

And then make sure you have the address of page right because the asp-page will not render a href for a tag if the address is not valid

if this doesn't help, take a look at enter image description here

  • Related