title: ASP.NET: Div event click fail
body: <p>I'm trying to call the vb method by clicking on the div but i get that the method is not defined.</p>
  
  <p>My Code:</p>
  
  <pre><code>&lt;div id="Div1" class="btn btn-primary pull-right" runat="server" onclick="prueba2()" &gt;
  &lt;/div&gt;
  
  &lt;script type="text/VB" runat="server"&gt;  
      Sub prueba2()
        MsgBox("seee")
      End Sub
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Debug: Uncaught ReferenceError: prueba2 is not defined</strong> </p>
  
  <p>Thanks in advance!</p>