title: How can I "inject" pages into my existing page using buttons to select the page
body: <p>I am new to Razor pages and hope there is a simple answer.</p>
  
  <p>Using this sketch as an example:</p>
  
  <pre>
       Name        |   Page Chooser
                   |-----------------
       Chooser     |   Page Content
                   |
  </pre>
  
  <p>In a Razor page, I want to click on a name in the "Name Chooser" section, and have the "Page Content" populate based on the ID of that selection.  Then, if the user clicks a button in the "Page Chooser" section, have the "Page Content" section update using the same ID chosen in the name choose, but with the new page's controls.</p>
  
  <p>In web forms, I would probably use nested Master Pages for this where the main page is the site navigation, header, and footer and the nested master page would have the Name Chooser and the Page Chooser.  The child pages would be the "Page Content" section.</p>
  
  <p>How would this be accomplished using Razor?</p>
  
  <p>Is there a faster way of doing this?  I really need to only render out the "Page Content" section and not everything else.</p>
  
  <p>Note: The "Page Content" could be inputs, tables, forms, etc.</p>