title: @Html.ActionLink, @Url.Action do not work in asp.net core razor view
body: <p>I am trying to use the @Html.ActionLink and @Url.Action in my razor pages.</p>
  <p>for this I have the following code in my view</p>
  
  <pre><code>&lt;div Id=&quot;SetLanguageUrl&quot; value=&quot;@Url.Action(&quot;SetLanguage&quot;, &quot;Language&quot;)&quot;&gt;&lt;/div&gt;
  @Html.ActionLink(&quot;Test&quot;, &quot;SetLanguage&quot;, &quot;Language&quot;)
  </code></pre>
  <p>I do not get an error on this, but both do not resolve the url as can be seen in the browser development tools screenshot.</p>
  <p><a href="https://i.stack.imgur.com/rJ696.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rJ696.png" alt="browser developer tools screenshot" /></a></p>
  <p>Anybody know what I could be missing?</p>