vb.net - ASP.NET: Div event click fail -


i'm trying call vb method clicking on div method not defined.

my code:

<div id="div1" class="btn btn-primary pull-right" runat="server" onclick="prueba2()" > </div>  <script type="text/vb" runat="server">       sub prueba2()       msgbox("seee")     end sub </script> 

debug: uncaught referenceerror: prueba2 not defined

thanks in advance!

in case, onclick javascript:

<div id="div1" class="btn btn-primary pull-right" runat="server" onclick="prueba2()" ></div>  <script type="text/javascript">     function prueba2() {         //do     } </script> 

note, asp.net controls, not same. have onclick code behind function , onclientclick client-side javascript function:

<asp:button id="_somebutton" onclick="vbfunction" text="some text" onclientclick="prueba2()" runat="server" /> 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -