function test() {
$("#dialog-form").dialog("open");
return true;
}
ASP:
<asp:TemplateField HeaderText="Edit">
<ItemTemplate>
<asp:LinkButton ID="LinkButton3" onClick="haha_click" OnClientClick="test();" ClientIDMode="Static" class="someclass" runat="server">link</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
VB:
Protected Sub haha_click(sender As Object, e As System.EventArgs)
msgBox("test")
End Sub
当我运行我的代码时,在客户端单击对话框打开,单击它会转到 vb 代码但关闭对话框...那么当转到 vb 代码时如何防止对话框关闭?