title: How to select a Radio Button in an ASP.Net Razor Pages app using c#
body: <p>I'm working on an asp.net razor page that has three radio buttons (All Dates, Filled Dates and Open Dates)  When the page first launches none of the buttons are selected, by default all records (All Dates) are selected.  If the user selects the Open Dates button, only the open dates appear.  However, all of the radio buttons are unchecked again.  I would like the  Open Dates button to stay checked.
  How can I set the Open Dates button (or any of the buttons) to selected using C#?  If there is a better way, what is suggested?</p>
  
  <pre><code>    //used to filter records as ALL Dates, Filled Dates, Open Dates
      [BindProperty]
      public string Option { get; set; };
  
  
      &lt;div class"col-6"&gt;
           &lt;input type="radio" value="All" id="Option1" name="Option" /&gt; All Dates
           &amp;nbsp;
           &lt;input type="radio" value="Filled" id="Option2" name="Option"  /&gt; Filled Dates
           &amp;nbsp;
          &lt;input type="radio" value="Open" id="Option3" name="Option"  /&gt; Open Dates
      &lt;/div&gt;
  </code></pre>