Visual Studio and Files Not Found Warnings with MVC

In a Visual Studio warning, I have the following errors in my forms for my presentation with HTML:

<form id="hitgraph" action="/HitResponseGraph" method="get">

/ HitResponseGraph is a view in MVC and the form works great. How to tell Visual Studio that this view exists, so it does not warn about this?

+4
source share
1 answer

I ran into this problem when I transferred a project from a development system to a live server. Although I initially thought that Html.BeginForm () was a bit larger than the macro for creating the form tag, it turns out that using it is a solution - it internally adjusted relative paths.

+2
source

Source: https://habr.com/ru/post/1347535/


All Articles