title: Asp.Net Core Razor Pages: asp-route to use value from input on same page
body: <p>From an Index page, is it possible to get the text value from an input like this:</p>
  <pre><code>&lt;input id=&quot;inpSearchMembers&quot; class=&quot;form-control small-text&quot; placeholder=&quot;Search for a Member...&quot; /&gt;
  </code></pre>
  <p>and feed it into the <code>asp-route-searchText</code> attribute value in something like this:</p>
  <pre><code>&lt;a id=&quot;btnSearchMembers&quot; class=&quot;btn btn-outline-primary small-text&quot; asp-page=&quot;/Search&quot; asp-route-searchText=&quot;~Value from InpSearchMember~&quot; &gt;Search&lt;/a&gt;
  </code></pre>
  <p>So that the attribute <code>asp-route-searchText</code> contains the text of the input field <code>id=&quot;inpSearchMembers&quot;</code> before sending back to the code-behind when clicked?</p>