title: pass C# variable into javascript code
body: <p>I have code lines like this</p>
  
  <pre><code>    public double bl = 0;
      browser1.EvaluateScriptAsync("document.querySelector('.amount').value=('#&lt;%= bl%&gt;');");
  </code></pre>
  
  <p>the class with </p>
  
  <pre><code>    .amount
  </code></pre>
  
  <p>gets updated with</p>
  
  <pre><code>    #&lt;%= bl%&gt;
  </code></pre>
  
  <p>but when I put</p>
  
  <pre><code>    "1"
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>    '#&lt;%= bl%&gt;'
  </code></pre>
  
  <p>the field gets updated with</p>
  
  <pre><code>    1
  </code></pre>
  
  <p>Now, how do I pass the value of the C# variable into the javascript code?</p>