title: Razor-pages form is not hitting the post method
body: <p>My post form is not working - the method in C# class is not even executing.
  I tried some soutions I found, but still can't handle with that.</p>
  <p>My simple view ReportBug.cshtml:</p>
  <pre><code>@page
  @model Report
  
  &lt;div class=&quot;m-3 p-3&quot;&gt;
      &lt;div class=&quot;text-center&quot;&gt;
          &lt;h4 class=&quot;display-4&quot;&gt;Report a bug&lt;/h4&gt;
      &lt;/div&gt;
  
      &lt;form method=&quot;post&quot;&gt;
          &lt;div class=&quot;row&quot;&gt;
              @(Html.Kendo()
                  .TextBoxFor(t =&gt; t.Title)
                  .Placeholder(&quot;Title&quot;)
                  .HtmlAttributes(new { style = &quot;width: 25%&quot; })
              )
          &lt;/div&gt;
              &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  <p>My C# class is:</p>
  <pre class="lang-cs prettyprint-override"><code>public class ReportBugModel : PageModel
  {
      public void OnGet()
      {
      }
  
      public void OnPost()
      {
      }
  
      public void OnPost(Report report)
      {
      }
  }
  </code></pre>
  <p>as you can see I tried call this method with no parameter and with 1 parameter (Report model).
  So summarizing:</p>
  <ul>
  <li>I have <code>@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers</code> in viewImports</li>
  <li>I tried tag helpers <code>asp-antiforgery=&quot;true&quot;</code></li>
  </ul>
  <p>Before these post method were named <code>OnPostReport(Report report)</code> and I used tag helper <code>asp-page-handler=&quot;Report&quot;</code>, but also failed.</p>
  <p>So far after click <code>Submit</code> button my page is only reloading and I don't have any erros in console.</p>
  <p>#Edit
  Here is the generated HTML code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;m-3 p-3&quot;&gt;
      &lt;div class=&quot;text-center&quot;&gt;
          &lt;h4 class=&quot;display-4&quot;&gt;Report a bug&lt;/h4&gt;
      &lt;/div&gt;
  
      &lt;form method=&quot;post&quot;&gt;
          &lt;div class=&quot;row&quot;&gt;
              &lt;span class=&quot;k-widget k-textbox&quot; style=&quot;width: 25%;&quot;&gt;&lt;input id=&quot;Title&quot; name=&quot;Title&quot; style=&quot;width: 100%;&quot; value=&quot;&quot; data-role=&quot;textbox&quot; aria-disabled=&quot;false&quot; class=&quot;k-input&quot; placeholder=&quot;Title&quot; autocomplete=&quot;off&quot;&gt;&lt;/span&gt;&lt;script&gt;kendo.syncReady(function(){jQuery(&quot;#Title&quot;).kendoTextBox({&quot;placeholder&quot;:&quot;Title&quot;});});&lt;/script&gt;
          &lt;/div&gt;
          &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit&lt;/button&gt;
      &lt;input name=&quot;__RequestVerificationToken&quot; type=&quot;hidden&quot; value=&quot;CfDJ8Bbl_ufFcklEjkehOGdz8BtSJK0b5YyLKm-ID2YYYWig_98ZBjFzd9-V_cDDrtBJqiKXJmW7blydpKIKa9qdz9sZZldP3cmya-BVho3uUIbW3_Ob-BVrLmAUi_KHq3eKEAE7nrELLwzebuzXTmnsP6sK2MubiEb3lK3mqOzmVERB2NmXvpI43QmwL-lGUr43Rw&quot;&gt;
      &lt;/form&gt;
  
  &lt;/div&gt;
  </code></pre>