title: How to pass data or communicate between C# and Javascript in Windows Phone 8.1 App
body: <p>In a Windows Phone 8.1 app I'm running <code>javascript</code> code in a <code>webview</code> which needs to call a <code>C#</code> method and the <code>C#</code> method returns some <code>string</code> data. I need this <code>string</code> data in the javascript code from where the <code>C#</code> method was called previously. How can I do this data passing operation in Windows Phone 8.1 app?</p>
  
  <p>To be more specific, I've trying to use somewhat following snippet in javascript:</p>
  
  <pre><code>var jsVariable = ClassName.MethodName(params);
  </code></pre>
  
  <p><code>ClassName</code> is a class in <code>C#</code> and  <code>MethodName(params)</code> is a method of the class. </p>
  
  <p>As far I know, I can call the <code>C#</code> method with <code>window.external.notify()</code> from the javascript side, but how can I receive the data sent by the <code>C#</code> method that is just called. </p>