-1
好运行此代码:
<script type="text/javascript">
function hello() {
alert("hello world from javascript ")
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="buttonme" runat="server" OnClientClick="javascript:hello()" Text="click" />
</div>
后面的代码:
Protected Sub buttonme_Click(ByVal sender
As Object, ByVal e As EventArgs) Handles buttonme.Click
MsgBox("hello world from vb.net ")
End Sub
会在vb.net MsgBox之前执行javascript消息吗?有没有办法让这个翻转来执行JavaScript函数第二谢谢
这和你上一个问题有什么不同? http://stackoverflow.com/questions/11039545/calling-asp-function-from-javascript –
我认为有没有办法做到这一点与阿贾克斯 –