Tag: bootbox

Bootbox确认:返回客户端结果以便回发到rowCommand

在bootbox之前,我在gridview的aspx文件中做了这个; <asp:Button ID="btnDelete" CssClass="btn btn-danger" OnClientClick="if(!confirmDelete()) return false;" runat="server" CommandArgument="” CausesValidation=”false” CommandName=”DeleteRow” Text=”Delete”/> 和js文件; function confirmDelete() { return confirm(“Are you sure you want to delete the record?”); } 并通过确认,触发gridview的RowCommand并完成删除。 有了bootbox,我真的被卡住了。 我知道bootbox是异步的,并尝试使用’preventDefault’,但它不起作用。 那么如何将上面的js文件转换为bootbox版本呢? 提前致谢。