title: Call C# method from JavaScript with parameter
body: <p>I want to call a C# method with parameter from JavaScript. It is possible, if I remove the parameter <code>s</code> of the method <code>&lt;% showDetail(); %&gt;</code></p>
  
  <pre><code>function showDetail(kurz)
          {
              String s = kurz.toString();
              &lt;% showDetail(s); %&gt;;
          }
  </code></pre>
  
  <p><strong>C# methods to test:</strong></p>
  
  <pre><code>public void showDetail(String s)
          {
              Label_Test.Text = s.ToString();
          }
  public void showDetail()
          {
              Label_Test.Text = "";
          }
  </code></pre>
  
  <p>It works fine without parameter but with <code>s</code> variable I  get a compiler error:</p>
  
  <blockquote>
    <p>CS0103: The name 's' does not exist in the current context</p>
  </blockquote>
  
  <p>I have tried</p>
  
  <pre><code>showDetail(Object s){....}
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>showDetail(String s){....}
  </code></pre>
  
  <p>but it does not work.</p>