日期:2014-05-17 浏览次数:20424 次
<asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn" OnClientClick="return dgvCheckDeletehasChoiced()" /> <asp:Button ID="btnDelete1" runat="server" Text="删除" CssClass="btn" OnClick="btnDelete_Click" Style="display: none" />
//判断是否选中的勾选框,删除 function dgvCheckDeletehasChoiced() { return CheckDeletehasChoiced("<%=grdView.ClientID %>", "<%=btnDelete1.ClientID %>"); }
function CheckDeletehasChoiced(tx1,tx2){ Jscript("Hello");//引用的脚本Jsctipt.js中的方法 }