Asp.Net Core Tag HelpersClick to Watch Video

Dot Net Core 3.1 Link Tag Helpers not Clickable

Problem: When developing in Asp.Net Core 3.1 and the links (Asp.Net Core Tag Helpers not working) stop working for example:

 Link Anchor Tag declared with asp-controller="ControllerName" asp-action="ActionName" stops working see solution below:


(Step 1) Open the Dev Tools, navigate to the "Elements" Tab and find a section where the unclickable link is located in the Dom.
(Step 2) When you find the link that can't be clicked, double click on it, while in the Dev Tools

[Note] Clicking on a link from the Dev Tools might not work using other Web Browser, this was tested using Chrome Web Browser Version 80.0.3987.132 (Official Build) (64-bit), make sure you are using Chrome the latest version.

(Step 3) The navigation happens and the error is thrown, for example, if there are any migrations pending to take place before the Action/Function is navigatable (if this is even a word).

.Net 7

702 said:


Posted On: March 15, 2020 0:07:13 AM

© 2024 - ErnesTech - Privacy
E-Commerce Return Policy