title: Server-side Blazor page post to Razor page http error 400
body: <p>I am trying to post my username and password from a Blazor page (.razor) to a Razor Page(.cshtml) but I get http error 400 all the time.</p>
  
  <p><strong>LoginControl.razor</strong></p>
  
  <pre><code>&lt;form method="post" action="login"&gt;
          &lt;input type="text"
                 name="username"
                 @bind="@Username"
                 placeholder="User Name" /&gt;
          &amp;nbsp;&amp;nbsp;
          &lt;input type="password"
                 name="password"
                 placeholder="Password"
                 @bind="@Password" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
          &lt;button class="ml-md-auto btn btn-primary"&gt;Loggin&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p><strong>Login.cshtml.cs</strong></p>
  
  <pre><code>public async Task&lt;IActionResult&gt; OnPostAsync([FromServices] IUserProvider provider, string username, string password)
      {
  Login stuff
  }
  </code></pre>