title: Post an update to an asp.net core Razor page when the data model changes
body: <p>I'm new to asp and web programming in general. I'm using Visual Studio 2017. I've created a Razor web application that uses an existing data model that I wrote for a Windows application. I'm able to display the values from my data model on my webpage when it first loads, but I can't figure out how to make the page show new values when they have changed in my data model. I'm used to working in WPF, binding to Dependency properties and INotifyPropertyChanged properties. Here is one of the property I am using for my Razor page:</p>
  
  <pre><code>    [BindProperty]
      public string VersionNumber { get; set; } = "0.0.0.0";
  </code></pre>
  
  <p>I've verified that the property is actually changing but the change is never reflected on the webpage.</p>
  
  <p>I've tried it a couple of ways:</p>
  
  <pre><code>&lt;form&gt;
      &lt;label style="margin: 5px;"&gt;
          Version
      &lt;/label&gt;
      &lt;input type="text" trim="false" uppercase="false" lowercase="false" propercase="false" asp-for="VersionNumber" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.VersionNumber)
  </code></pre>
  
  <p>I realize I'm missing the concept of how this is supposed to work and hopefully the answer to this question will make the light bulb come on.</p>