title: calling ASP function from javascript
body: <p>hello i have this question i was trying to find a way to call a javascript function from asp controllers and i did here is the code  : </p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
        function hello() { 
          alert("hello world")
      }
  &lt;/script&gt;
  &lt;  /head&gt;
   &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
      &lt;asp:Button ID="buttonme" runat="server" OnClientClick="javascript:hello()" 
   Text="click" /&gt;
  </code></pre>
  
  <p>now lets say i have this code behind function</p>
  
  <pre><code>    Public Sub msg()
        MsgBox("hello world")
      End Sub 
  </code></pre>
  
  <p>and i want to call it from a javascript function so it will be like controller----call---> javascript ---call--->code behind </p>
  
  <p>is there is a way to do this </p>