title: Call javascript from MVC controller action
body: <p>Can I call javascript function from <strong>MVC controller action</strong> (not from view page) and get return value? How?</p>
  
  <hr>
  
  <p>I need to make request to server <strong>from code (.cs)</strong> using javascript like here (<strong>but this is aspx page</strong>)</p>
  
  <pre><code>function getInitData() { 
  var code; code = 'return {' ;
  code += 'me: API.getProfiles({uids: API.getVariable({key: 1280}), fields: "photo"})[0]'; 
  code += '};'
  VK.Api.call('execute', { 'code': code }, onGetInitData); 
  } 
  </code></pre>