title: Copy text directly to clipboard in asp.net
body: <p>I want the value I clicked on the event to be saved in the clipboard but this code does not work please see where my mistake is</p>
  <pre><code>&lt;button class=&quot;btn btn-outline-warning&quot; onclick=&quot;navigator.clipboard.writeText(@Model.projectCode)&quot;&gt;@Model.projectCode&lt;/button&gt;
  </code></pre>