title: Is there a way to access a complex model property of a page handler in the Razor page?
body: <p>I have a page handler that has a complex property for model binding. I want to access the property to the razor page so I can use the tag helpers to generate the form inputs from the property.</p>
  <p>This is my page handler:</p>
  <pre><code>public async Task&lt;IActionResult&gt; OnPostChangePassword(PasswordChangeInput Input)
  {
       // Some code
  
  }
  </code></pre>
  <p>I want to access the property so I can use it with <code>asp-for</code></p>
  <pre><code>@page
  @model EditPasswordModel
  @
  {
      //Some code
  }
  
  &lt;form method=&quot;post&quot;&gt;
      &lt;div class=&quot;flex justify-between my-1&quot;&gt;
          &lt;label class=&quot;text-gray-700&quot; for=&quot;cus_name&quot;&gt;Password:&lt;/label&gt;
          &lt;input asp-for=&quot;Input.Password&quot; class=&quot;px-3 py-1 text-gray-900&quot; /&gt;
      &lt;/div&gt;
      &lt;div class=&quot;flex justify-between my-1&quot;&gt;
          &lt;label class=&quot;text-gray-700&quot; for=&quot;cus_name&quot;&gt;Confirm Password:&lt;/label&gt;
          &lt;input asp-for=&quot;Input.ConfirmPassword&quot; class=&quot;px-3 py-1 text-gray-900&quot; /&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;input type=&quot;submit&quot; /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>