【发布时间】:2012-06-14 19:28:14
【问题描述】:
好的,运行这段代码:
<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函数第二次谢谢
【问题讨论】:
-
这与您上一个问题有何不同? stackoverflow.com/questions/11039545/…
-
我认为没有 ajax 没有办法做到这一点