Call C# from Javascript in ios UIWebview
<p>I have a web app and my backend is implemented in <code>C#</code>.</p>

<p>I would like to call the <code>CallMethod</code> (backend) from <code>HelloWorld</code> (frontend) function.</p>

<p>Ive tried the following code but i'm missing something...</p>

<p><strong>backend code:</strong></p>

<pre><code>Class CallClass
{
    public void CallMethod(string x)
    {
     //I write me logic here.
    }
}
</code></pre>

<p><strong>frontend code:</strong></p>

<pre><code>&lt;script type=”text/JavaScript”&gt;
    var x='123';
    function HelloWorld(){
        CallClass.CallMethod(x);
    }
&lt;/script&gt;
</code></pre>